Struct yy_typings::sound::SampleRate
source · [−]#[repr(transparent)]pub struct SampleRate(_);
Implementations
sourceimpl SampleRate
impl SampleRate
pub fn new(bitrate: u32) -> Option<Self>
pub fn is_valid_sample_rate(bitrate: u32) -> bool
pub fn set_sample_rate(
&mut self,
sample_rate: u32
) -> Result<(), InvalidSampleRate>
pub fn sample_rate(&self) -> u32
pub fn valid_sample_rates() -> [u32; 6]
Trait Implementations
sourceimpl Clone for SampleRate
impl Clone for SampleRate
sourcefn clone(&self) -> SampleRate
fn clone(&self) -> SampleRate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SampleRate
impl Debug for SampleRate
sourceimpl Default for SampleRate
impl Default for SampleRate
sourceimpl<'de> Deserialize<'de> for SampleRate
impl<'de> Deserialize<'de> for SampleRate
sourcefn 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
sourceimpl PartialEq<SampleRate> for SampleRate
impl PartialEq<SampleRate> for SampleRate
sourcefn 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 ==
. Read more
sourceimpl Serialize for SampleRate
impl Serialize for SampleRate
impl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more