pub enum ModulatorRate {
Hz(f32),
Musical(MusicalDivision),
}Expand description
Modulator rate specified either as a fixed frequency or as a tempo-synced division.
Variants§
Hz(f32)
Musical(MusicalDivision)
Implementations§
Source§impl ModulatorRate
impl ModulatorRate
Trait Implementations§
Source§impl Clone for ModulatorRate
impl Clone for ModulatorRate
Source§fn clone(&self) -> ModulatorRate
fn clone(&self) -> ModulatorRate
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 ModulatorRate
Source§impl Debug for ModulatorRate
impl Debug for ModulatorRate
Source§impl Default for ModulatorRate
impl Default for ModulatorRate
Source§impl<'de> Deserialize<'de> for ModulatorRate
impl<'de> Deserialize<'de> for ModulatorRate
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 PartialEq for ModulatorRate
impl PartialEq for ModulatorRate
Source§fn eq(&self, other: &ModulatorRate) -> bool
fn eq(&self, other: &ModulatorRate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModulatorRate
impl Serialize for ModulatorRate
impl StructuralPartialEq for ModulatorRate
Auto Trait Implementations§
impl Freeze for ModulatorRate
impl RefUnwindSafe for ModulatorRate
impl Send for ModulatorRate
impl Sync for ModulatorRate
impl Unpin for ModulatorRate
impl UnsafeUnpin for ModulatorRate
impl UnwindSafe for ModulatorRate
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more