pub struct OnceValues<O> { /* private fields */ }Expand description
Calls the given function and initialize the value upon first use.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<O> !Freeze for OnceValues<O>
impl<O> !RefUnwindSafe for OnceValues<O>
impl<O> !Send for OnceValues<O>
impl<O> !Sync for OnceValues<O>
impl<O> Unpin for OnceValues<O>
impl<O> !UnwindSafe for OnceValues<O>
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