pub struct MapVTableBuilder { /* private fields */ }Expand description
Builder for the vtable
Implementations§
Source§impl MapVTableBuilder
impl MapVTableBuilder
Sourcepub const fn init_in_place_with_capacity(
self,
value: unsafe fn(PtrUninit, usize) -> PtrMut,
) -> MapVTableBuilder
pub const fn init_in_place_with_capacity( self, value: unsafe fn(PtrUninit, usize) -> PtrMut, ) -> MapVTableBuilder
Set the init_in_place_with_capacity field
Sourcepub const fn insert(
self,
value: unsafe fn(PtrMut, PtrMut, PtrMut),
) -> MapVTableBuilder
pub const fn insert( self, value: unsafe fn(PtrMut, PtrMut, PtrMut), ) -> MapVTableBuilder
Set the insert field
Sourcepub const fn len(self, value: unsafe fn(PtrConst) -> usize) -> MapVTableBuilder
pub const fn len(self, value: unsafe fn(PtrConst) -> usize) -> MapVTableBuilder
Set the len field
Sourcepub const fn contains_key(
self,
value: unsafe fn(PtrConst, PtrConst) -> bool,
) -> MapVTableBuilder
pub const fn contains_key( self, value: unsafe fn(PtrConst, PtrConst) -> bool, ) -> MapVTableBuilder
Set the contains_key field
Sourcepub const fn get_value_ptr(
self,
value: unsafe fn(PtrConst, PtrConst) -> Option<PtrConst>,
) -> MapVTableBuilder
pub const fn get_value_ptr( self, value: unsafe fn(PtrConst, PtrConst) -> Option<PtrConst>, ) -> MapVTableBuilder
Set the get_value_ptr field
Sourcepub const fn iter_vtable(
self,
value: IterVTable<(PtrConst, PtrConst)>,
) -> MapVTableBuilder
pub const fn iter_vtable( self, value: IterVTable<(PtrConst, PtrConst)>, ) -> MapVTableBuilder
Set the iter_vtable field
Trait Implementations§
Source§impl Clone for MapVTableBuilder
impl Clone for MapVTableBuilder
Source§fn clone(&self) -> MapVTableBuilder
fn clone(&self) -> MapVTableBuilder
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 MapVTableBuilder
impl Debug for MapVTableBuilder
impl Copy for MapVTableBuilder
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