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§

source

fn to_sample_(self) -> S

Implementors§

source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,