Trait MaybeDither
pub trait MaybeDither<T>: Samplewhere
T: Sample,{
const DITHERABLE: bool;
// Required method
fn maybe_dither<D>(self, dither: &mut D) -> Self
where D: Dither<Self, T>;
}
Available on crate feature
dep_symphonia
only.Expand description
MaybeDither
conditionally applies a dither to a sample depending on the source and
destination sample types.
Required Associated Constants§
const DITHERABLE: bool
Required Methods§
fn maybe_dither<D>(self, dither: &mut D) -> Selfwhere
D: Dither<Self, T>,
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.