pub trait Sample:
Sealed
+ Copy
+ PartialOrd
+ Debug
+ Display
+ Add<Output = Self>
+ AddAssign
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ Neg<Output = Self> {
const ZERO: Self;
const ONE: Self;
const TWO: Self;
const PI: Self;
// Required method
fn clamp(self, min: Self, max: Self) -> Self;
}Expand description
A sample type LowpassFilter can operate on: f32 or f64.
This trait is sealed and cannot be implemented outside of this crate.
Required Associated Constants§
Required Methods§
Sourcefn clamp(self, min: Self, max: Self) -> Self
fn clamp(self, min: Self, max: Self) -> Self
See f32::clamp.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".