pub enum SampleRate {
Hz22050,
Hz16000,
Hz32000,
Hz44100,
Hz48000,
Hz88200,
Hz96000,
Hz176400,
Hz192000,
Hz384000,
}Expand description
All sample rates the resampler can operate on.
Variants§
Hz22050
22.5 kHz
Hz16000
16 kHz
Hz32000
32 kHz
Hz44100
44.1 kHz
Hz48000
48 kHz
Hz88200
88.2 kHz
Hz96000
96 kHz
Hz176400
176.4 kHz
Hz192000
192 kHz
Hz384000
384 kHz
Trait Implementations§
Source§impl Clone for SampleRate
impl Clone for SampleRate
Source§fn clone(&self) -> SampleRate
fn clone(&self) -> SampleRate
Returns a duplicate of the value. Read more
1.0.0 · 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 SampleRate
impl Debug for SampleRate
Source§impl From<SampleRate> for u32
impl From<SampleRate> for u32
Source§fn from(value: SampleRate) -> Self
fn from(value: SampleRate) -> Self
Converts to this type from the input type.
Source§impl Hash for SampleRate
impl Hash for SampleRate
Source§impl Ord for SampleRate
impl Ord for SampleRate
Source§fn cmp(&self, other: &SampleRate) -> Ordering
fn cmp(&self, other: &SampleRate) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SampleRate
impl PartialEq for SampleRate
Source§impl PartialOrd for SampleRate
impl PartialOrd for SampleRate
Source§impl TryFrom<u32> for SampleRate
impl TryFrom<u32> for SampleRate
impl Copy for SampleRate
impl Eq for SampleRate
impl StructuralPartialEq for SampleRate
Auto Trait Implementations§
impl Freeze for SampleRate
impl RefUnwindSafe for SampleRate
impl Send for SampleRate
impl Sync for SampleRate
impl Unpin for SampleRate
impl UnwindSafe for SampleRate
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