pub struct WavSource<B> { /* private fields */ }Expand description
A WAV file’s samples, read from its bytes as they are asked for. It borrows them
or owns them, as B does: a worker that outlives its caller holds an Arc<[u8]>.
Implementations§
Trait Implementations§
Source§impl<B: AsRef<[u8]>> Source for WavSource<B>
impl<B: AsRef<[u8]>> Source for WavSource<B>
Source§fn total_frames(&self) -> Option<u64>
fn total_frames(&self) -> Option<u64>
How many frames it yields from its start, if that is known without
decoding.
Auto Trait Implementations§
impl<B> Freeze for WavSource<B>where
B: Freeze,
impl<B> RefUnwindSafe for WavSource<B>where
B: RefUnwindSafe,
impl<B> Send for WavSource<B>where
B: Send,
impl<B> Sync for WavSource<B>where
B: Sync,
impl<B> Unpin for WavSource<B>where
B: Unpin,
impl<B> UnsafeUnpin for WavSource<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for WavSource<B>where
B: 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