pub struct MapVTableBuilder { /* private fields */ }
Expand description
Builds a MapVTable
Implementations§
Source§impl MapVTableBuilder
impl MapVTableBuilder
Sourcepub const fn new() -> MapVTableBuilder
pub const fn new() -> MapVTableBuilder
Creates a new MapVTableBuilder
with all fields set to None
.
Sourcepub const fn init_in_place_with_capacity(
self,
f: for<'mem> unsafe fn(PtrUninit<'mem>, usize) -> PtrMut<'mem>,
) -> MapVTableBuilder
pub const fn init_in_place_with_capacity( self, f: for<'mem> unsafe fn(PtrUninit<'mem>, usize) -> PtrMut<'mem>, ) -> MapVTableBuilder
Sets the init_in_place_with_capacity_fn field
Sourcepub const fn insert(
self,
f: for<'map, 'key, 'value> unsafe fn(PtrMut<'map>, PtrMut<'key>, PtrMut<'value>),
) -> MapVTableBuilder
pub const fn insert( self, f: for<'map, 'key, 'value> unsafe fn(PtrMut<'map>, PtrMut<'key>, PtrMut<'value>), ) -> MapVTableBuilder
Sets the insert_fn field
Sourcepub const fn len(
self,
f: for<'map> unsafe fn(PtrConst<'map>) -> usize,
) -> MapVTableBuilder
pub const fn len( self, f: for<'map> unsafe fn(PtrConst<'map>) -> usize, ) -> MapVTableBuilder
Sets the len_fn field
Sourcepub const fn contains_key(
self,
f: for<'map, 'key> unsafe fn(PtrConst<'map>, PtrConst<'key>) -> bool,
) -> MapVTableBuilder
pub const fn contains_key( self, f: for<'map, 'key> unsafe fn(PtrConst<'map>, PtrConst<'key>) -> bool, ) -> MapVTableBuilder
Sets the contains_key_fn field
Sourcepub const fn get_value_ptr(
self,
f: for<'map, 'key> unsafe fn(PtrConst<'map>, PtrConst<'key>) -> Option<PtrConst<'map>>,
) -> MapVTableBuilder
pub const fn get_value_ptr( self, f: for<'map, 'key> unsafe fn(PtrConst<'map>, PtrConst<'key>) -> Option<PtrConst<'map>>, ) -> MapVTableBuilder
Sets the get_value_ptr_fn field
Sourcepub const fn iter_vtable(
self,
vtable: IterVTable<(PtrConst<'static>, PtrConst<'static>)>,
) -> MapVTableBuilder
pub const fn iter_vtable( self, vtable: IterVTable<(PtrConst<'static>, PtrConst<'static>)>, ) -> MapVTableBuilder
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