#[repr(C)]pub struct OptionDef<'shape> {
pub vtable: &'shape OptionVTable,
pub t: &'shape Shape<'shape>,
}Expand description
Describes an Option — including a vtable to query and alter its state,
and the inner shape (the T in Option<T>).
Fields§
§vtable: &'shape OptionVTablevtable for interacting with the option
t: &'shape Shape<'shape>shape of the inner type of the option
Implementations§
Trait Implementations§
impl<'shape> Copy for OptionDef<'shape>
Auto Trait Implementations§
impl<'shape> Freeze for OptionDef<'shape>
impl<'shape> RefUnwindSafe for OptionDef<'shape>
impl<'shape> Send for OptionDef<'shape>
impl<'shape> Sync for OptionDef<'shape>
impl<'shape> Unpin for OptionDef<'shape>
impl<'shape> UnwindSafe for OptionDef<'shape>
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