symphonia_core::conv

Trait ReversibleSample

Source
pub trait ReversibleSample<S>:
    Sample
    + FromSample<S>
    + IntoSample<S> { }
Expand description

ReversibleSample is a trait that when implemented for Self, that Sample type implements reversible conversions between Self and the parameterized Sample type S.

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.

Implementors§

Source§

impl<S, T> ReversibleSample<S> for T
where T: Sample + FromSample<S> + IntoSample<S>,