#[repr(C)]pub struct OptionDef {
pub vtable: &'static OptionVTable,
pub t: &'static 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: &'static OptionVTable
vtable for interacting with the option
t: &'static Shape
shape of the inner type of the option
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptionDef
impl RefUnwindSafe for OptionDef
impl Send for OptionDef
impl Sync for OptionDef
impl Unpin for OptionDef
impl UnwindSafe for OptionDef
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