Struct option_lock::Lazy [−][src]
pub struct Lazy<T, F = fn() -> T> { /* fields omitted */ }
Expand description
A convenient wrapper around a OnceCell<T>
with an initializer.
Implementations
Trait Implementations
impl<T, F: Send> Sync for Lazy<T, F> where
OnceCell<T>: Sync,
[src]
OnceCell<T>: Sync,
Auto Trait Implementations
impl<T, F = fn() -> T> !RefUnwindSafe for Lazy<T, F>
impl<T, F> Send for Lazy<T, F> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<T, F> Unpin for Lazy<T, F> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,
impl<T, F> UnwindSafe for Lazy<T, F> where
F: UnwindSafe,
T: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more