pub trait Sample:
Copy
+ Clone
+ Add<Output = Self>
+ Sub<Output = Self>
+ Default
+ PartialOrd
+ PartialEq
+ Sized {
const FORMAT: SampleFormat;
const EFF_BITS: u32;
const MID: Self;
// Required method
fn clamped(self) -> Self;
}
Expand description
Sample
provides a common interface for manipulating sample’s regardless of the
underlying data type. Additionally, Sample
provides information regarding the
format of underlying data types representing the sample when in memory, but also
when exported.
Required Associated Constants§
Sourceconst FORMAT: SampleFormat
const FORMAT: SampleFormat
A unique enum value representing the sample format. This constant may be used to dynamically choose how to process the sample at runtime.
Required Methods§
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.