#[repr(C)]pub struct OptionVTable {
pub is_some_fn: OptionIsSomeFn,
pub get_value_fn: OptionGetValueFn,
pub init_some_fn: OptionInitSomeFn,
pub init_none_fn: OptionInitNoneFn,
pub replace_with_fn: OptionReplaceWithFn,
}
Expand description
Virtual table for Option<T>
Fields§
§is_some_fn: OptionIsSomeFn
cf. OptionIsSomeFn
get_value_fn: OptionGetValueFn
cf. OptionGetValueFn
init_some_fn: OptionInitSomeFn
cf. OptionInitSomeFn
init_none_fn: OptionInitNoneFn
cf. OptionInitNoneFn
replace_with_fn: OptionReplaceWithFn
Implementations§
Source§impl OptionVTable
impl OptionVTable
Sourcepub const fn builder() -> OptionVTableBuilder
pub const fn builder() -> OptionVTableBuilder
Returns a builder for OptionVTable
Trait Implementations§
Source§impl Clone for OptionVTable
impl Clone for OptionVTable
Source§fn clone(&self) -> OptionVTable
fn clone(&self) -> OptionVTable
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 OptionVTable
impl Debug for OptionVTable
impl Copy for OptionVTable
Auto Trait Implementations§
impl Freeze for OptionVTable
impl RefUnwindSafe for OptionVTable
impl Send for OptionVTable
impl Sync for OptionVTable
impl Unpin for OptionVTable
impl UnwindSafe for OptionVTable
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