pub struct ParallelMulidigestImpl<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 ParallelMulidigestImpl<D, N>
impl<D: Clone + MultiDigest<N>, const N: usize> Clone for ParallelMulidigestImpl<D, N>
Source§fn clone(&self) -> ParallelMulidigestImpl<D, N>
fn clone(&self) -> ParallelMulidigestImpl<D, N>
Returns a copy 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 ParallelMulidigestImpl<D, N>
impl<D: MultiDigest<N, Digest: Send> + Send + Sync, const N: usize> ParallelDigest for ParallelMulidigestImpl<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(
&self,
source: impl IndexedParallelIterator<Item: Serializable>,
out: &mut [MaybeUninit<Output<Self::Digest>>],
)
fn digest( &self, source: impl IndexedParallelIterator<Item: Serializable>, out: &mut [MaybeUninit<Output<Self::Digest>>], )
Calculate the digest of multiple hashes where each of them is serialized into
the same number of bytes.
Auto Trait Implementations§
impl<D, const N: usize> Freeze for ParallelMulidigestImpl<D, N>where
D: Freeze,
impl<D, const N: usize> RefUnwindSafe for ParallelMulidigestImpl<D, N>where
D: RefUnwindSafe,
impl<D, const N: usize> Send for ParallelMulidigestImpl<D, N>where
D: Send,
impl<D, const N: usize> Sync for ParallelMulidigestImpl<D, N>where
D: Sync,
impl<D, const N: usize> Unpin for ParallelMulidigestImpl<D, N>where
D: Unpin,
impl<D, const N: usize> UnwindSafe for ParallelMulidigestImpl<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