pub(crate) struct HashTableCore<'ob>(HashTableType<'ob>);
Tuple Fields§
§0: HashTableType<'ob>
Implementations§
Source§impl<'a> HashTableCore<'a>
impl<'a> HashTableCore<'a>
pub(in core) unsafe fn new( table: IndexMap<Gc<ObjectType<'_>>, Gc<ObjectType<'_>>>, constant: bool, ) -> Self
fn with<F, T>(&self, f: F) -> T
pub(crate) fn len(&self) -> usize
pub(crate) fn get(&self, key: Gc<ObjectType<'_>>) -> Option<Gc<ObjectType<'_>>>
pub(crate) fn get_index( &self, index: usize, ) -> Option<(Gc<ObjectType<'_>>, Gc<ObjectType<'_>>)>
pub(crate) fn get_index_of(&self, key: Gc<ObjectType<'_>>) -> Option<usize>
pub(crate) fn insert(&self, key: Gc<ObjectType<'_>>, value: Gc<ObjectType<'_>>)
pub(crate) fn shift_remove(&self, key: Gc<ObjectType<'_>>)
pub(crate) fn get_iter_index(&self) -> usize
pub(crate) fn set_iter_index(&self, index: usize)
Source§impl HashTableCore<'_>
impl HashTableCore<'_>
Trait Implementations§
Source§impl PartialEq for HashTableCore<'_>
impl PartialEq for HashTableCore<'_>
Source§impl Debug for HashTableCore<'_>
impl Debug for HashTableCore<'_>
Source§impl Display for HashTableCore<'_>
impl Display for HashTableCore<'_>
impl Eq for HashTableCore<'_>
Auto Trait Implementations§
impl<'ob> !Freeze for HashTableCore<'ob>
impl<'ob> !RefUnwindSafe for HashTableCore<'ob>
impl<'ob> Send for HashTableCore<'ob>
impl<'ob> !Sync for HashTableCore<'ob>
impl<'ob> Unpin for HashTableCore<'ob>
impl<'ob> !UnwindSafe for HashTableCore<'ob>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.