#[repr(C)]pub struct MapVTable {
pub init_in_place_with_capacity_fn: for<'mem> unsafe fn(_: PtrUninit<'mem>, _: usize) -> PtrMut<'mem>,
pub insert_fn: for<'map, 'key, 'value> unsafe fn(_: PtrMut<'map>, _: PtrMut<'key>, _: PtrMut<'value>),
pub len_fn: for<'map> unsafe fn(_: PtrConst<'map>) -> usize,
pub contains_key_fn: for<'map, 'key> unsafe fn(_: PtrConst<'map>, _: PtrConst<'key>) -> bool,
pub get_value_ptr_fn: for<'map, 'key> unsafe fn(_: PtrConst<'map>, _: PtrConst<'key>) -> Option<PtrConst<'map>>,
pub iter_fn: for<'map> unsafe fn(_: PtrConst<'map>) -> PtrMut<'map>,
pub iter_vtable: MapIterVTable,
}Expand description
Virtual table for a Map<K, V>
Fields§
§init_in_place_with_capacity_fn: for<'mem> unsafe fn(_: PtrUninit<'mem>, _: usize) -> PtrMut<'mem>§insert_fn: for<'map, 'key, 'value> unsafe fn(_: PtrMut<'map>, _: PtrMut<'key>, _: PtrMut<'value>)cf. MapInsertFn
len_fn: for<'map> unsafe fn(_: PtrConst<'map>) -> usizecf. MapLenFn
contains_key_fn: for<'map, 'key> unsafe fn(_: PtrConst<'map>, _: PtrConst<'key>) -> boolcf. MapContainsKeyFn
get_value_ptr_fn: for<'map, 'key> unsafe fn(_: PtrConst<'map>, _: PtrConst<'key>) -> Option<PtrConst<'map>>cf. MapGetValuePtrFn
iter_fn: for<'map> unsafe fn(_: PtrConst<'map>) -> PtrMut<'map>cf. MapIterFn
iter_vtable: MapIterVTableVirtual table for map iterator operations
Implementations§
Trait Implementations§
impl Copy for MapVTable
impl Eq for MapVTable
impl StructuralPartialEq for MapVTable
Auto Trait Implementations§
impl Freeze for MapVTable
impl RefUnwindSafe for MapVTable
impl Send for MapVTable
impl Sync for MapVTable
impl Unpin for MapVTable
impl UnwindSafe for MapVTable
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