pub struct HashSet { /* private fields */ }Expand description
HashSet for fast hash prefix lookups
Implementations§
Source§impl HashSet
impl HashSet
Sourcepub fn import(&mut self, hashes: HashPrefixes)
pub fn import(&mut self, hashes: HashPrefixes)
Import hash prefixes from a collection
Sourcepub fn export(&self) -> HashPrefixes
pub fn export(&self) -> HashPrefixes
Export hash prefixes to a collection
Sourcepub fn lookup(&self, hash: &HashPrefix) -> usize
pub fn lookup(&self, hash: &HashPrefix) -> usize
Look up a hash prefix and return the length of the match (0 if no match)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashSet
impl RefUnwindSafe for HashSet
impl Send for HashSet
impl Sync for HashSet
impl Unpin for HashSet
impl UnwindSafe for HashSet
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