Struct cpal::SampleRate
source · pub struct SampleRate(pub u32);
Expand description
The number of samples processed per second for a single channel of audio.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Clone for SampleRate
impl Clone for SampleRate
source§fn clone(&self) -> SampleRate
fn clone(&self) -> SampleRate
Returns a copy 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 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<SampleRate> for SampleRate
impl PartialEq<SampleRate> for SampleRate
source§fn eq(&self, other: &SampleRate) -> bool
fn eq(&self, other: &SampleRate) -> bool
source§impl PartialOrd<SampleRate> for SampleRate
impl PartialOrd<SampleRate> for SampleRate
source§fn partial_cmp(&self, other: &SampleRate) -> Option<Ordering>
fn partial_cmp(&self, other: &SampleRate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more