pub trait ToSample<S> {
// Required method
fn to_sample_(self) -> S;
}Expand description
Similar to the std Into trait, but specifically for converting between sample types.
This trait has a blanket implementation for all types that implement
FromSample.
Required Methods§
fn to_sample_(self) -> S
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".