pub struct ParallelMultidigestImpl<D: MultiDigest<N>, const N: usize>(/* private fields */);Expand description
A wrapper that implements the ParallelDigest trait for a MultiDigest implementation.
Trait Implementations§
Source§impl<D: Clone + MultiDigest<N>, const N: usize> Clone for ParallelMultidigestImpl<D, N>
impl<D: Clone + MultiDigest<N>, const N: usize> Clone for ParallelMultidigestImpl<D, N>
Source§fn clone(&self) -> ParallelMultidigestImpl<D, N>
fn clone(&self) -> ParallelMultidigestImpl<D, N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: MultiDigest<N, Digest: Send> + Send + Sync, const N: usize> ParallelDigest for ParallelMultidigestImpl<D, N>
impl<D: MultiDigest<N, Digest: Send> + Send + Sync, const N: usize> ParallelDigest for ParallelMultidigestImpl<D, N>
Source§type Digest = <D as MultiDigest<N>>::Digest
type Digest = <D as MultiDigest<N>>::Digest
The corresponding non-parallelized hash function.
Source§fn new_with_prefix(data: impl AsRef<[u8]>) -> Self
fn new_with_prefix(data: impl AsRef<[u8]>) -> Self
Create new hasher instance which has processed the provided data.
Source§fn digest<I: IntoIterator<Item: SerializeBytes>>(
&self,
source: impl IndexedParallelIterator<Item = I>,
out: &mut [MaybeUninit<Output<Self::Digest>>],
)
fn digest<I: IntoIterator<Item: SerializeBytes>>( &self, source: impl IndexedParallelIterator<Item = I>, out: &mut [MaybeUninit<Output<Self::Digest>>], )
Calculate the digest of multiple hashes by processing a parallel iterator of iterators. Read more
Auto Trait Implementations§
impl<D, const N: usize> Freeze for ParallelMultidigestImpl<D, N>where
D: Freeze,
impl<D, const N: usize> RefUnwindSafe for ParallelMultidigestImpl<D, N>where
D: RefUnwindSafe,
impl<D, const N: usize> Send for ParallelMultidigestImpl<D, N>where
D: Send,
impl<D, const N: usize> Sync for ParallelMultidigestImpl<D, N>where
D: Sync,
impl<D, const N: usize> Unpin for ParallelMultidigestImpl<D, N>where
D: Unpin,
impl<D, const N: usize> UnwindSafe for ParallelMultidigestImpl<D, N>where
D: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more