pub struct Waveform(_);
Available on crate features
events
and unstable-msc3246
only.Expand description
The waveform representation of audio content.
Must include between 30 and 120 Amplitude
s.
To build this, use the TryFrom
implementations.
Implementations
sourceimpl Waveform
impl Waveform
sourcepub const MIN_LENGTH: usize = 30usize
pub const MIN_LENGTH: usize = 30usize
The smallest number of values contained in a Waveform
.
sourcepub const MAX_LENGTH: usize = 120usize
pub const MAX_LENGTH: usize = 120usize
The largest number of values contained in a Waveform
.
sourcepub fn amplitudes(&self) -> &[Amplitude]
pub fn amplitudes(&self) -> &[Amplitude]
The amplitudes of this Waveform
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Waveform
impl<'de> Deserialize<'de> for Waveform
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Waveform
impl Send for Waveform
impl Sync for Waveform
impl Unpin for Waveform
impl UnwindSafe for Waveform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more