pub trait FromSample<S> {
// Required method
fn from_sample(other: S) -> Self;
}Expand description
For converting samples between types.
Required Methods§
Sourcefn from_sample(other: S) -> Self
fn from_sample(other: S) -> Self
Converts to Self a sample from the other.
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.