pub struct VisionParallelCompression { /* private fields */ }Expand description
Parallel Vision compression with N parallel compressions using rayon.
Processes N compression pairs simultaneously using parallel Vision permutation and multithreading for optimal performance.
Implementations§
Trait Implementations§
Source§impl Clone for VisionParallelCompression
impl Clone for VisionParallelCompression
Source§fn clone(&self) -> VisionParallelCompression
fn clone(&self) -> VisionParallelCompression
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 Debug for VisionParallelCompression
impl Debug for VisionParallelCompression
Source§impl Default for VisionParallelCompression
impl Default for VisionParallelCompression
Source§fn default() -> VisionParallelCompression
fn default() -> VisionParallelCompression
Returns the “default value” for a type. Read more
Source§impl ParallelPseudoCompression<GenericArray<u8, <VisionHasherDigest as OutputSizeUser>::OutputSize>, 2> for VisionParallelCompression
impl ParallelPseudoCompression<GenericArray<u8, <VisionHasherDigest as OutputSizeUser>::OutputSize>, 2> for VisionParallelCompression
Source§type Compression = VisionCompression
type Compression = VisionCompression
The underlying compression function that performs N-to-1 compression.
Source§fn compression(&self) -> &Self::Compression
fn compression(&self) -> &Self::Compression
Returns a reference to the underlying compression function.
Source§fn parallel_compress(
&self,
inputs: &[Output<VisionHasherDigest>],
out: &mut [MaybeUninit<Output<VisionHasherDigest>>],
)
fn parallel_compress( &self, inputs: &[Output<VisionHasherDigest>], out: &mut [MaybeUninit<Output<VisionHasherDigest>>], )
Compresses multiple N-element chunks in parallel. Read more
Auto Trait Implementations§
impl Freeze for VisionParallelCompression
impl RefUnwindSafe for VisionParallelCompression
impl Send for VisionParallelCompression
impl Sync for VisionParallelCompression
impl Unpin for VisionParallelCompression
impl UnwindSafe for VisionParallelCompression
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