pub trait Smoothable:
Default
+ Clone
+ Copy {
type Atomic: Default;
// Required methods
fn to_f32(self) -> f32;
fn from_f32(value: f32) -> Self;
fn atomic_new(value: Self) -> Self::Atomic;
fn atomic_load(this: &Self::Atomic) -> Self;
fn atomic_store(this: &Self::Atomic, value: Self);
}Expand description
A type that can be smoothed. This exists just to avoid duplicate explicit implementations for the smoothers.
Required Associated Types§
Required Methods§
fn to_f32(self) -> f32
fn from_f32(value: f32) -> Self
fn atomic_new(value: Self) -> Self::Atomic
Sourcefn atomic_load(this: &Self::Atomic) -> Self
fn atomic_load(this: &Self::Atomic) -> Self
A relaxed atomic load.
Sourcefn atomic_store(this: &Self::Atomic, value: Self)
fn atomic_store(this: &Self::Atomic, value: Self)
A relaxed atomic store.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.