dasp_sample::conv

Trait Duplex

Source
pub trait Duplex<S>: FromSample<S> + ToSample<S> { }
Expand description

Sample types which may be converted to and from some 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> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,