pub struct MapVTableBuilder { /* private fields */ }
Expand description
Builds a MapVTable
Implementations§
Source§impl MapVTableBuilder
impl MapVTableBuilder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MapVTableBuilder
with all fields set to None
.
Sourcepub const fn init_in_place_with_capacity(
self,
f: MapInitInPlaceWithCapacityFn,
) -> Self
pub const fn init_in_place_with_capacity( self, f: MapInitInPlaceWithCapacityFn, ) -> Self
Sets the init_in_place_with_capacity_fn field
Sourcepub const fn insert(self, f: MapInsertFn) -> Self
pub const fn insert(self, f: MapInsertFn) -> Self
Sets the insert_fn field
Sourcepub const fn contains_key(self, f: MapContainsKeyFn) -> Self
pub const fn contains_key(self, f: MapContainsKeyFn) -> Self
Sets the contains_key_fn field
Sourcepub const fn get_value_ptr(self, f: MapGetValuePtrFn) -> Self
pub const fn get_value_ptr(self, f: MapGetValuePtrFn) -> Self
Sets the get_value_ptr_fn field
Sourcepub const fn iter_vtable(
self,
vtable: IterVTable<(PtrConst<'static>, PtrConst<'static>)>,
) -> Self
pub const fn iter_vtable( self, vtable: IterVTable<(PtrConst<'static>, PtrConst<'static>)>, ) -> Self
Sets the iter_vtable field
Auto Trait Implementations§
impl Freeze for MapVTableBuilder
impl RefUnwindSafe for MapVTableBuilder
impl Send for MapVTableBuilder
impl Sync for MapVTableBuilder
impl Unpin for MapVTableBuilder
impl UnwindSafe for MapVTableBuilder
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