pub struct PortableBlake3ParallelDigest<const LANES: usize>;Expand description
Parallel Blake3 leaf digest backed by the portable auto-vectorized kernel.
LANES is the batch width handed to the vectorizer.
Leaf size decides the path:
- Up to one 1024-byte chunk (any length): batched through the portable kernel.
- Larger (multi-chunk): hashed on its own by the scalar adapter, which walks the tree.
Trait Implementations§
Source§impl<const LANES: usize> Clone for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> Clone for PortableBlake3ParallelDigest<LANES>
Source§fn clone(&self) -> PortableBlake3ParallelDigest<LANES>
fn clone(&self) -> PortableBlake3ParallelDigest<LANES>
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<const LANES: usize> Debug for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> Debug for PortableBlake3ParallelDigest<LANES>
Source§impl<const LANES: usize> Default for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> Default for PortableBlake3ParallelDigest<LANES>
Source§fn default() -> PortableBlake3ParallelDigest<LANES>
fn default() -> PortableBlake3ParallelDigest<LANES>
Returns the “default value” for a type. Read more
Source§impl<const LANES: usize> ParallelDigest for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> ParallelDigest for PortableBlake3ParallelDigest<LANES>
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
Source§fn digest_with_const_len<I: IntoIterator<Item: FixedSizeSerializeBytes>>(
&self,
n_items_per_input: usize,
source: impl IndexedParallelIterator<Item = I>,
out: &mut [MaybeUninit<Output<Self::Digest>>],
)
fn digest_with_const_len<I: IntoIterator<Item: FixedSizeSerializeBytes>>( &self, n_items_per_input: usize, source: impl IndexedParallelIterator<Item = I>, out: &mut [MaybeUninit<Output<Self::Digest>>], )
Auto Trait Implementations§
impl<const LANES: usize> Freeze for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> RefUnwindSafe for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> Send for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> Sync for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> Unpin for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> UnsafeUnpin for PortableBlake3ParallelDigest<LANES>
impl<const LANES: usize> UnwindSafe for PortableBlake3ParallelDigest<LANES>
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