Enum kira::ClockSpeed
source · [−]Expand description
The rate that a clock ticks at.
Variants
SecondsPerTick(f64)
The clock ticks every x seconds.
TicksPerSecond(f64)
The clock ticks x times per second.
TicksPerMinute(f64)
The clock ticks x times per minute.
Implementations
sourceimpl ClockSpeed
impl ClockSpeed
sourcepub fn as_seconds_per_tick(&self) -> f64
pub fn as_seconds_per_tick(&self) -> f64
Returns the ClockSpeed
as a number of seconds between each tick.
sourcepub fn as_ticks_per_second(&self) -> f64
pub fn as_ticks_per_second(&self) -> f64
Returns the ClockSpeed
as a number of ticks per second.
sourcepub fn as_ticks_per_minute(&self) -> f64
pub fn as_ticks_per_minute(&self) -> f64
Returns the ClockSpeed
as a number of ticks per minute.
Trait Implementations
sourceimpl Clone for ClockSpeed
impl Clone for ClockSpeed
sourcefn clone(&self) -> ClockSpeed
fn clone(&self) -> ClockSpeed
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 ClockSpeed
impl Debug for ClockSpeed
sourceimpl PartialEq<ClockSpeed> for ClockSpeed
impl PartialEq<ClockSpeed> for ClockSpeed
sourcefn eq(&self, other: &ClockSpeed) -> bool
fn eq(&self, other: &ClockSpeed) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ClockSpeed) -> bool
fn ne(&self, other: &ClockSpeed) -> bool
This method tests for !=
.
sourceimpl Tweenable for ClockSpeed
impl Tweenable for ClockSpeed
impl Copy for ClockSpeed
impl StructuralPartialEq for ClockSpeed
Auto Trait Implementations
impl RefUnwindSafe for ClockSpeed
impl Send for ClockSpeed
impl Sync for ClockSpeed
impl Unpin for ClockSpeed
impl UnwindSafe for ClockSpeed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
fn into_sample(self) -> T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more