pub struct StreamingHashBuilder { /* private fields */ }Expand description
Fluent builder producing a DynStreamingHash instance.
Obtained from HashBuilder::streaming. Call
build for a DynStreamingHash.
Implementations§
Source§impl StreamingHashBuilder
impl StreamingHashBuilder
Sourcepub const fn new(algorithm: HashAlgorithm) -> Self
pub const fn new(algorithm: HashAlgorithm) -> Self
Begin building a streaming hasher with an explicit HashAlgorithm.
Sourcepub const fn algorithm(&self) -> HashAlgorithm
pub const fn algorithm(&self) -> HashAlgorithm
The algorithm currently selected.
Sourcepub fn build(self) -> DynStreamingHash
pub fn build(self) -> DynStreamingHash
Build a DynStreamingHash for the selected algorithm.
Trait Implementations§
Source§impl Clone for StreamingHashBuilder
impl Clone for StreamingHashBuilder
Source§fn clone(&self) -> StreamingHashBuilder
fn clone(&self) -> StreamingHashBuilder
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 moreSource§impl Debug for StreamingHashBuilder
impl Debug for StreamingHashBuilder
Source§impl PartialEq for StreamingHashBuilder
impl PartialEq for StreamingHashBuilder
Source§fn eq(&self, other: &StreamingHashBuilder) -> bool
fn eq(&self, other: &StreamingHashBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StreamingHashBuilder
impl Eq for StreamingHashBuilder
impl StructuralPartialEq for StreamingHashBuilder
Auto Trait Implementations§
impl Freeze for StreamingHashBuilder
impl RefUnwindSafe for StreamingHashBuilder
impl Send for StreamingHashBuilder
impl Sync for StreamingHashBuilder
impl Unpin for StreamingHashBuilder
impl UnsafeUnpin for StreamingHashBuilder
impl UnwindSafe for StreamingHashBuilder
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