pub struct Lazy<T> { /* private fields */ }Expand description
Resolves a dependency on first access and caches it locally.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Lazy<T>
impl<T> !RefUnwindSafe for Lazy<T>
impl<T> Send for Lazy<T>
impl<T> Sync for Lazy<T>
impl<T> Unpin for Lazy<T>
impl<T> UnsafeUnpin for Lazy<T>
impl<T> UnwindSafe for Lazy<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more