Struct Samplerate
#[repr(transparent)]pub struct Samplerate(pub u32);
Expand description
Controls normal or continuous sample rate
Tuple Fields§
§0: u32
Implementations§
§impl Samplerate
impl Samplerate
pub const fn mode(&self) -> SamplerateMode
pub const fn mode(&self) -> SamplerateMode
Select mode for sample rate control
pub fn set_mode(&mut self, val: SamplerateMode)
pub fn set_mode(&mut self, val: SamplerateMode)
Select mode for sample rate control
Trait Implementations§
§impl Clone for Samplerate
impl Clone for Samplerate
§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 more§impl Default for Samplerate
impl Default for Samplerate
§fn default() -> Samplerate
fn default() -> Samplerate
Returns the “default value” for a type. Read more
§impl PartialEq for Samplerate
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)