pub struct Init<'s, T> { /* private fields */ }Expand description
Proof that a Slot was initialized: a reference to the decoded value
in its destination.
Only Slot::write and Slot::assume_init produce one, so holding
an Init<'s, T> means the slot it came from holds a valid T.
Implementations§
Auto Trait Implementations§
impl<'s, T> !UnwindSafe for Init<'s, T>
impl<'s, T> Freeze for Init<'s, T>
impl<'s, T> RefUnwindSafe for Init<'s, T>where
&'s mut T: RefUnwindSafe,
impl<'s, T> Send for Init<'s, T>
impl<'s, T> Sync for Init<'s, T>
impl<'s, T> Unpin for Init<'s, T>
impl<'s, T> UnsafeUnpin for Init<'s, T>where
&'s mut T: UnsafeUnpin,
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