pub struct Sample<Raw>(/* private fields */);Expand description
One audio sample of raw type Raw (i16, f32, …).
A transparent newtype, so a [Sample<T>] can be reinterpreted as [T] without copying.
Trait Implementations§
impl<Raw: Copy> Copy for Sample<Raw>
impl<Raw: Eq> Eq for Sample<Raw>
impl<Raw: PartialEq> StructuralPartialEq for Sample<Raw>
Auto Trait Implementations§
impl<Raw> Freeze for Sample<Raw>where
Raw: Freeze,
impl<Raw> RefUnwindSafe for Sample<Raw>where
Raw: RefUnwindSafe,
impl<Raw> Send for Sample<Raw>where
Raw: Send,
impl<Raw> Sync for Sample<Raw>where
Raw: Sync,
impl<Raw> Unpin for Sample<Raw>where
Raw: Unpin,
impl<Raw> UnsafeUnpin for Sample<Raw>where
Raw: UnsafeUnpin,
impl<Raw> UnwindSafe for Sample<Raw>where
Raw: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more