pub struct Ssimulacra2Config {
pub impl_type: SimdImpl,
}Expand description
SSIMULACRA2 configuration for customizing computation (from fast-ssim2). Configuration for SSIMULACRA2 computation.
Fields§
§impl_type: SimdImplImplementation backend for all operations
Implementations§
Source§impl Ssimulacra2Config
impl Ssimulacra2Config
Sourcepub fn new(impl_type: SimdImpl) -> Ssimulacra2Config
pub fn new(impl_type: SimdImpl) -> Ssimulacra2Config
Create configuration with specified implementation
Sourcepub fn simd() -> Ssimulacra2Config
pub fn simd() -> Ssimulacra2Config
Default configuration using safe SIMD for all operations
Sourcepub fn unsafe_simd() -> Ssimulacra2Config
pub fn unsafe_simd() -> Ssimulacra2Config
Configuration using unsafe SIMD for all operations (fastest)
Sourcepub fn scalar() -> Ssimulacra2Config
pub fn scalar() -> Ssimulacra2Config
Scalar configuration (baseline, most compatible)
Trait Implementations§
Source§impl Clone for Ssimulacra2Config
impl Clone for Ssimulacra2Config
Source§fn clone(&self) -> Ssimulacra2Config
fn clone(&self) -> Ssimulacra2Config
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 Ssimulacra2Config
impl Debug for Ssimulacra2Config
Source§impl Default for Ssimulacra2Config
impl Default for Ssimulacra2Config
Source§fn default() -> Ssimulacra2Config
fn default() -> Ssimulacra2Config
Returns the “default value” for a type. Read more
impl Copy for Ssimulacra2Config
Auto Trait Implementations§
impl Freeze for Ssimulacra2Config
impl RefUnwindSafe for Ssimulacra2Config
impl Send for Ssimulacra2Config
impl Sync for Ssimulacra2Config
impl Unpin for Ssimulacra2Config
impl UnwindSafe for Ssimulacra2Config
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,
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