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