pub struct SmallHashData { /* private fields */ }Expand description
Inline packed hash storage. 24 bytes total.
Implementations§
Source§impl SmallHashData
impl SmallHashData
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn get(&self, field: &[u8]) -> Option<&[u8]>
pub fn get(&self, field: &[u8]) -> Option<&[u8]>
Look up field; returns the value bytes if present.
Sourcepub fn contains_key(&self, field: &[u8]) -> bool
pub fn contains_key(&self, field: &[u8]) -> bool
Does this small hash contain field?
pub fn iter(&self) -> SmallHashIter<'_> ⓘ
Trait Implementations§
Source§impl Clone for SmallHashData
impl Clone for SmallHashData
Source§fn clone(&self) -> SmallHashData
fn clone(&self) -> SmallHashData
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 moreAuto Trait Implementations§
impl Freeze for SmallHashData
impl RefUnwindSafe for SmallHashData
impl Send for SmallHashData
impl Sync for SmallHashData
impl Unpin for SmallHashData
impl UnsafeUnpin for SmallHashData
impl UnwindSafe for SmallHashData
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