pub trait MaybeDither<T: Sample>: Sample {
const DITHERABLE: bool;
// Required method
fn maybe_dither<D: Dither<Self, T>>(self, dither: &mut D) -> Self;
}
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: Dither<Self, T>>(self, dither: &mut D) -> Self
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.