pub struct LtHash(pub [u16; 1024]);
Expand description
A 16-bit, 1024 element lattice-based incremental hash based on blake3
Tuple Fields§
§0: [u16; 1024]
Implementations§
Source§impl LtHash
impl LtHash
pub const NUM_ELEMENTS: usize = 1_024usize
Sourcepub fn with(hasher: &Hasher) -> Self
pub fn with(hasher: &Hasher) -> Self
Creates a new LtHash from hasher
The caller should hash in all inputs of interest prior to calling.
Sourcepub fn mix_in(&mut self, other: &Self)
pub fn mix_in(&mut self, other: &Self)
Mixes other
into self
This can be thought of as akin to ‘insert’
Trait Implementations§
impl Eq for LtHash
impl StructuralPartialEq for LtHash
Auto Trait Implementations§
impl Freeze for LtHash
impl RefUnwindSafe for LtHash
impl Send for LtHash
impl Sync for LtHash
impl Unpin for LtHash
impl UnwindSafe for LtHash
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