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<T> Div<T> for SampleRate
impl<T> Div<T> for SampleRate
source§impl<T> Mul<T> for SampleRate
impl<T> Mul<T> 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§fn eq(&self, other: &SampleRate) -> bool
fn eq(&self, other: &SampleRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SampleRate
impl PartialOrd 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 moreimpl Copy for SampleRate
impl Eq for SampleRate
impl StructuralEq for SampleRate
impl StructuralPartialEq for SampleRate
Auto Trait Implementations§
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