pub struct DictTable { /* private fields */ }Implementations§
Source§impl DictTable
impl DictTable
pub fn new() -> Self
pub fn with_capacity(n: usize) -> Self
Sourcepub fn slot_value(&self, slot: usize) -> Option<Value>
pub fn slot_value(&self, slot: usize) -> Option<Value>
The value in slot of a shape-mode table.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn version(&self) -> u64
pub fn heap_bytes(&self) -> usize
pub fn trace(&self, t: &mut Tracer)
pub fn entry(&self, idx: usize) -> Entry
pub fn set_value_at(&mut self, idx: usize, v: Value)
Sourcepub fn raw_len(&self) -> usize
pub fn raw_len(&self) -> usize
Entry index of the n-th live entry (for indexed iteration that tolerates growth).
pub fn raw_entry(&self, i: usize) -> Option<Entry>
pub fn probe(&self, hash: u64, key: Value) -> Probe
Sourcepub fn insert_new(&mut self, hash: u64, key: Value, value: Value)
pub fn insert_new(&mut self, hash: u64, key: Value, value: Value)
Appends a new entry (the caller has established the key is absent).
Sourcepub fn remove_at(&mut self, idx: usize) -> Value
pub fn remove_at(&mut self, idx: usize) -> Value
Removes the entry at idx, returning its value.
pub fn clear(&mut self)
pub fn first_live(&self) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DictTable
impl !UnwindSafe for DictTable
impl Freeze for DictTable
impl Send for DictTable
impl Sync for DictTable
impl Unpin for DictTable
impl UnsafeUnpin for DictTable
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