Trait nih_plug::params::smoothing::Smoothable
source · 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.