pub trait Lazy<T>
where T: ?Sized,
{ // Required method fn get(&mut self) -> &T; }
Expand description

A lazy value.

Required Methods§

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.

Implementations on Foreign Types§

§

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

§

fn get(&mut self) -> &[u8]

Implementors§