Trait sp_runtime::traits::Lazy[][src]

pub trait Lazy<T: ?Sized> {
    fn get(&mut self) -> &T;
}

A lazy value.

Required methods

fn get(&mut self) -> &T[src]

Get a reference to the underlying value.

This will compute the value if the function is invoked for the first time.

Loading content...

Implementations on Foreign Types

impl<'a> Lazy<[u8]> for &'a [u8][src]

Loading content...

Implementors

Loading content...