pub struct OptionDefBuilder { /* private fields */ }Expand description
Builder for OptionDef
Implementations§
Source§impl OptionDefBuilder
impl OptionDefBuilder
Sourcepub const fn new() -> OptionDefBuilder
pub const fn new() -> OptionDefBuilder
Creates a new OptionDefBuilder
Sourcepub const fn vtable(self, vtable: &'static OptionVTable) -> OptionDefBuilder
pub const fn vtable(self, vtable: &'static OptionVTable) -> OptionDefBuilder
Sets the vtable for the OptionDef
Sourcepub const fn t(self, t: fn() -> &'static Shape) -> OptionDefBuilder
pub const fn t(self, t: fn() -> &'static Shape) -> OptionDefBuilder
Sets the inner type shape for the OptionDef
Auto Trait Implementations§
impl Freeze for OptionDefBuilder
impl RefUnwindSafe for OptionDefBuilder
impl Send for OptionDefBuilder
impl Sync for OptionDefBuilder
impl Unpin for OptionDefBuilder
impl UnwindSafe for OptionDefBuilder
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