pub struct Page<TKey, TValue>(/* private fields */);
Expand description
A single page in a Map
. Contains up to 256 key-value entries.
Implementations§
Source§impl<K, V> Page<K, V>where
K: Collapse,
impl<K, V> Page<K, V>where
K: Collapse,
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
The number of entries currently in this page
This is a count that iterates over all slots, if possible store it in a temporary instead of re-calling it many times.
Sourcepub fn iter(&self) -> PageElements<'_, K, V> ⓘ
pub fn iter(&self) -> PageElements<'_, K, V> ⓘ
An iterator over all entries currently in this page
Sourcepub fn iter_mut(&mut self) -> PageElementsMut<'_, K, V> ⓘ
pub fn iter_mut(&mut self) -> PageElementsMut<'_, K, V> ⓘ
A mutable iterator over all entries currently in this page
Trait Implementations§
Source§impl<K, V> IntoIterator for Page<K, V>where
K: Collapse,
impl<K, V> IntoIterator for Page<K, V>where
K: Collapse,
impl<K: Eq, V: Eq> Eq for Page<K, V>
Auto Trait Implementations§
impl<TKey, TValue> Freeze for Page<TKey, TValue>
impl<TKey, TValue> RefUnwindSafe for Page<TKey, TValue>where
TKey: RefUnwindSafe,
TValue: RefUnwindSafe,
impl<TKey, TValue> Send for Page<TKey, TValue>
impl<TKey, TValue> Sync for Page<TKey, TValue>
impl<TKey, TValue> Unpin for Page<TKey, TValue>
impl<TKey, TValue> UnwindSafe for Page<TKey, TValue>where
TKey: UnwindSafe,
TValue: UnwindSafe,
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