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,
source§impl<K: PartialEq, V: PartialEq> PartialEq for Page<K, V>
impl<K: PartialEq, V: PartialEq> PartialEq for Page<K, V>
impl<K: Eq, V: Eq> Eq for Page<K, V>
Auto Trait Implementations§
impl<TKey, TValue> RefUnwindSafe for Page<TKey, TValue>where TKey: RefUnwindSafe, TValue: RefUnwindSafe,
impl<TKey, TValue> Send for Page<TKey, TValue>where TKey: Send, TValue: Send,
impl<TKey, TValue> Sync for Page<TKey, TValue>where TKey: Sync, TValue: Sync,
impl<TKey, TValue> Unpin for Page<TKey, TValue>where TKey: Unpin, TValue: Unpin,
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