pub struct InstanceHasher { /* private fields */ }Expand description
Streaming Instance-Code generator.
Incrementally hashes data with BLAKE3 to produce an ISCC Instance-Code
identical to gen_instance_code_v0 for the same byte stream.
Implementations§
Source§impl InstanceHasher
impl InstanceHasher
Sourcepub fn finalize(self, bits: u32) -> IsccResult<InstanceCodeResult>
pub fn finalize(self, bits: u32) -> IsccResult<InstanceCodeResult>
Consume the hasher and produce an Instance-Code result.
Equivalent to calling gen_instance_code_v0 with the concatenation
of all data passed to update.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstanceHasher
impl RefUnwindSafe for InstanceHasher
impl Send for InstanceHasher
impl Sync for InstanceHasher
impl Unpin for InstanceHasher
impl UnsafeUnpin for InstanceHasher
impl UnwindSafe for InstanceHasher
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