pub enum AccidentalAttribute {
Name(String),
Alter(FloatType),
Modifier(String),
}Expand description
One part of an Accidental, for Accidental::set_attribute_independently.
music21 names the part with a string and raises on any other name; here the
three writable parts are the only ones that can be spelled.
Variants§
Name(String)
The accidental’s name, such as "sori".
Alter(FloatType)
The semitone alteration.
Modifier(String)
The written modifier, such as "#".
Trait Implementations§
Source§impl Clone for AccidentalAttribute
impl Clone for AccidentalAttribute
Source§fn clone(&self) -> AccidentalAttribute
fn clone(&self) -> AccidentalAttribute
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 moreSource§impl Debug for AccidentalAttribute
impl Debug for AccidentalAttribute
Source§impl PartialEq for AccidentalAttribute
impl PartialEq for AccidentalAttribute
impl StructuralPartialEq for AccidentalAttribute
Auto Trait Implementations§
impl Freeze for AccidentalAttribute
impl RefUnwindSafe for AccidentalAttribute
impl Send for AccidentalAttribute
impl Sync for AccidentalAttribute
impl Unpin for AccidentalAttribute
impl UnsafeUnpin for AccidentalAttribute
impl UnwindSafe for AccidentalAttribute
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