pub struct SampleRate(/* private fields */);Expand description
Samples per second. Zero is unrepresentable: the old sample_rate == 0
sentinel (and its downstream special cases) cannot be constructed.
Implementations§
Source§impl SampleRate
impl SampleRate
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampleRate
Source§impl Debug for SampleRate
impl Debug for SampleRate
Source§impl<'de> Deserialize<'de> for SampleRate
impl<'de> Deserialize<'de> for SampleRate
Source§fn 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
Source§impl Display for SampleRate
impl Display for SampleRate
impl Eq for SampleRate
Source§impl From<SampleRate> for u32
impl From<SampleRate> for u32
Source§fn from(rate: SampleRate) -> u32
fn from(rate: SampleRate) -> u32
Converts to this type from the input type.
Source§impl Hash for SampleRate
impl Hash for SampleRate
Source§impl PartialEq for SampleRate
impl PartialEq for SampleRate
Source§fn eq(&self, other: &SampleRate) -> bool
fn eq(&self, other: &SampleRate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SampleRate
impl Serialize 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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.