#[repr(C)]pub struct MapVTable {
pub init_in_place_with_capacity: MapInitInPlaceWithCapacityFn,
pub insert: MapInsertFn,
pub len: MapLenFn,
pub contains_key: MapContainsKeyFn,
pub get_value_ptr: MapGetValuePtrFn,
pub iter_vtable: IterVTable<(PtrConst, PtrConst)>,
pub from_pair_slice: Option<MapFromPairSliceFn>,
pub pair_stride: usize,
pub value_offset_in_pair: usize,
}Expand description
Virtual table for a Map<K, V>
Fields§
§init_in_place_with_capacity: MapInitInPlaceWithCapacityFn§insert: MapInsertFncf. MapInsertFn
len: MapLenFncf. MapLenFn
contains_key: MapContainsKeyFncf. MapContainsKeyFn
get_value_ptr: MapGetValuePtrFncf. MapGetValuePtrFn
iter_vtable: IterVTable<(PtrConst, PtrConst)>Virtual table for map iterator operations
from_pair_slice: Option<MapFromPairSliceFn>cf. MapFromPairSliceFn - optional optimization for JIT
pair_stride: usizeSize of (K, V) tuple in bytes (for JIT buffer allocation)
value_offset_in_pair: usizeOffset of V within (K, V) tuple (for JIT value placement)
Implementations§
Trait Implementations§
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