pub struct OptionVTableBuilder { /* private fields */ }Expand description
Builder for the vtable
Implementations§
Source§impl OptionVTableBuilder
impl OptionVTableBuilder
Sourcepub const fn is_some(self, value: OptionIsSomeFn) -> Self
pub const fn is_some(self, value: OptionIsSomeFn) -> Self
Set the is_some field
Sourcepub const fn get_value(self, value: OptionGetValueFn) -> Self
pub const fn get_value(self, value: OptionGetValueFn) -> Self
Set the get_value field
Sourcepub const fn init_some(self, value: OptionInitSomeFn) -> Self
pub const fn init_some(self, value: OptionInitSomeFn) -> Self
Set the init_some field
Sourcepub const fn init_none(self, value: OptionInitNoneFn) -> Self
pub const fn init_none(self, value: OptionInitNoneFn) -> Self
Set the init_none field
Sourcepub const fn replace_with(self, value: OptionReplaceWithFn) -> Self
pub const fn replace_with(self, value: OptionReplaceWithFn) -> Self
Set the replace_with field
Sourcepub const fn build(self) -> OptionVTable
pub const fn build(self) -> OptionVTable
Trait Implementations§
Source§impl Clone for OptionVTableBuilder
impl Clone for OptionVTableBuilder
Source§fn clone(&self) -> OptionVTableBuilder
fn clone(&self) -> OptionVTableBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionVTableBuilder
impl Debug for OptionVTableBuilder
impl Copy for OptionVTableBuilder
Auto Trait Implementations§
impl Freeze for OptionVTableBuilder
impl RefUnwindSafe for OptionVTableBuilder
impl Send for OptionVTableBuilder
impl Sync for OptionVTableBuilder
impl Unpin for OptionVTableBuilder
impl UnwindSafe for OptionVTableBuilder
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