pub struct Lazy<T> { /* private fields */ }
Expand description
Lazily initialized static variable.
Used in generated code.
Currently a wrapper around once_cell
s OnceCell
.
Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Lazy<T>
impl<T> RefUnwindSafe for Lazy<T>where
T: RefUnwindSafe + UnwindSafe,
impl<T> Send for Lazy<T>where
T: Send,
impl<T> Sync for Lazy<T>
impl<T> Unpin for Lazy<T>where
T: Unpin,
impl<T> UnwindSafe for Lazy<T>where
T: UnwindSafe,
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