pub trait Wrapper {
type Inner: Sound;
// Required methods
fn inner(&self) -> &Self::Inner;
fn inner_mut(&mut self) -> &mut Self::Inner;
fn into_inner(self) -> Self::Inner;
}
Expand description
Super trait that implements all traits that a wrapper Sound should transparently pass through if implemented by the inner sound. If you have a wrapper that should handle any of these traits specially besides just passing through, then you should not implement this trait but implement all of the traits individually.
Required Associated Types§
Required Methods§
sourcefn inner_mut(&mut self) -> &mut Self::Inner
fn inner_mut(&mut self) -> &mut Self::Inner
Get a mutable reference to the wrapped inner Sound.
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwrap and return the previously wrapped Sound.