Trait Lazy
Other items insp_runtime::traits
pub trait Lazy<T: ?Sized> { fn get(&mut self) -> &T; }
A lazy value.
fn get(&mut self) -> &T
Get a reference to the underlying value.
This will compute the value if the function is invoked for the first time.
impl<'a> Lazy<[u8]> for &'a [u8]
fn get(&mut self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]