pub enum TableSlotRef {
Array(usize),
Hash(usize),
Absent,
}Expand description
Internal slot reference returned by the “get” family of functions.
Replaces C’s const TValue * pattern, which may point into either
the array part, the hash part, or the static absentkey sentinel.
Variants§
Array(usize)
Key lives in the array part at this 0-based index.
Hash(usize)
Key lives in the hash part at this 0-based node index.
Absent
Key is absent from the table (C: &absentkey).
Trait Implementations§
Source§impl Clone for TableSlotRef
impl Clone for TableSlotRef
Source§fn clone(&self) -> TableSlotRef
fn clone(&self) -> TableSlotRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TableSlotRef
impl Debug for TableSlotRef
impl Copy for TableSlotRef
Auto Trait Implementations§
impl Freeze for TableSlotRef
impl RefUnwindSafe for TableSlotRef
impl Send for TableSlotRef
impl Sync for TableSlotRef
impl Unpin for TableSlotRef
impl UnsafeUnpin for TableSlotRef
impl UnwindSafe for TableSlotRef
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