pub struct LateInit<T> { /* private fields */ }Implementations§
Source§impl<T: Default> LateInit<T>
impl<T: Default> LateInit<T>
pub fn get_or_init(&self) -> &T
pub fn get_mut_or_init(&mut self) -> &mut T
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for LateInit<T>
impl<T> RefUnwindSafe for LateInit<T>where
T: RefUnwindSafe + UnwindSafe,
impl<T> Send for LateInit<T>where
T: Send,
impl<T> !Sync for LateInit<T>
impl<T> Unpin for LateInit<T>where
T: Unpin,
impl<T> UnwindSafe for LateInit<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