pub enum MicrotoneSpecifier {
Cents(FloatType),
Text(String),
Microtone(Microtone),
}Expand description
Input accepted by Microtone::new and Microtone::with_harmonic_shift.
Variants§
Cents(FloatType)
A cent offset from the notated pitch.
Text(String)
A textual cent offset such as "+20c" or "(-33.333)".
Microtone(Microtone)
An existing microtone to clone.
Trait Implementations§
Source§impl Clone for MicrotoneSpecifier
impl Clone for MicrotoneSpecifier
Source§fn clone(&self) -> MicrotoneSpecifier
fn clone(&self) -> MicrotoneSpecifier
Returns a duplicate 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 moreSource§impl Debug for MicrotoneSpecifier
impl Debug for MicrotoneSpecifier
Source§impl<'de> Deserialize<'de> for MicrotoneSpecifier
impl<'de> Deserialize<'de> for MicrotoneSpecifier
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 MicrotoneSpecifier
impl Display for MicrotoneSpecifier
Source§impl From<&str> for MicrotoneSpecifier
impl From<&str> for MicrotoneSpecifier
Source§impl From<Microtone> for MicrotoneSpecifier
impl From<Microtone> for MicrotoneSpecifier
Source§impl From<String> for MicrotoneSpecifier
impl From<String> for MicrotoneSpecifier
Source§impl From<f64> for MicrotoneSpecifier
impl From<f64> for MicrotoneSpecifier
Source§impl From<i32> for MicrotoneSpecifier
impl From<i32> for MicrotoneSpecifier
Source§fn from(value: IntegerType) -> Self
fn from(value: IntegerType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MicrotoneSpecifier
impl PartialEq for MicrotoneSpecifier
Source§impl Serialize for MicrotoneSpecifier
impl Serialize for MicrotoneSpecifier
impl StructuralPartialEq for MicrotoneSpecifier
Auto Trait Implementations§
impl Freeze for MicrotoneSpecifier
impl RefUnwindSafe for MicrotoneSpecifier
impl Send for MicrotoneSpecifier
impl Sync for MicrotoneSpecifier
impl Unpin for MicrotoneSpecifier
impl UnsafeUnpin for MicrotoneSpecifier
impl UnwindSafe for MicrotoneSpecifier
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§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