pub struct OwnedAudioWaveformBatch {
pub sample_rate: u32,
/* private fields */
}Expand description
Data type for owned audio waveform batch.
Fields§
§sample_rate: u32Sample rate in hertz.
Implementations§
Source§impl OwnedAudioWaveformBatch
impl OwnedAudioWaveformBatch
Sourcepub fn from_audio_frames(frames: &[OwnedAudioFrame]) -> Result<Self>
pub fn from_audio_frames(frames: &[OwnedAudioFrame]) -> Result<Self>
Builds this value from audio frames.
Sourcepub fn as_view(&self) -> Result<AudioWaveformBatchView<'_>>
pub fn as_view(&self) -> Result<AudioWaveformBatchView<'_>>
Borrows this value as a view.
Trait Implementations§
Source§impl Clone for OwnedAudioWaveformBatch
impl Clone for OwnedAudioWaveformBatch
Source§fn clone(&self) -> OwnedAudioWaveformBatch
fn clone(&self) -> OwnedAudioWaveformBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnedAudioWaveformBatch
impl Debug for OwnedAudioWaveformBatch
Source§impl PartialEq for OwnedAudioWaveformBatch
impl PartialEq for OwnedAudioWaveformBatch
Source§fn eq(&self, other: &OwnedAudioWaveformBatch) -> bool
fn eq(&self, other: &OwnedAudioWaveformBatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OwnedAudioWaveformBatch
Auto Trait Implementations§
impl Freeze for OwnedAudioWaveformBatch
impl RefUnwindSafe for OwnedAudioWaveformBatch
impl Send for OwnedAudioWaveformBatch
impl Sync for OwnedAudioWaveformBatch
impl Unpin for OwnedAudioWaveformBatch
impl UnsafeUnpin for OwnedAudioWaveformBatch
impl UnwindSafe for OwnedAudioWaveformBatch
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