pub enum AccidentalDisplay {
Auto,
Cautionary,
Parenthesized,
Editorial,
}Expand description
How a pitch’s accidental is shown when the notation rules alone would not decide it: a
cautionary (courtesy) accidental the source asked for, one in parentheses or brackets, or
an editorial one. Auto (the default) leaves the accidental to the key and the bar.
Variants§
Auto
Cautionary
Always shown, without parentheses (MusicXML cautionary="yes", MEI @func="caution").
Parenthesized
Always shown, in parentheses (MusicXML parentheses="yes"/bracket="yes", MEI
@enclose, MuseScore accidental brackets).
Editorial
An editor’s addition (MusicXML editorial="yes", MEI @func="edit"), always shown.
Trait Implementations§
Source§impl Clone for AccidentalDisplay
impl Clone for AccidentalDisplay
impl Copy for AccidentalDisplay
Source§impl Debug for AccidentalDisplay
impl Debug for AccidentalDisplay
Source§impl Default for AccidentalDisplay
impl Default for AccidentalDisplay
Source§impl<'de> Deserialize<'de> for AccidentalDisplay
impl<'de> Deserialize<'de> for AccidentalDisplay
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
impl Eq for AccidentalDisplay
Source§impl PartialEq for AccidentalDisplay
impl PartialEq for AccidentalDisplay
Source§impl Serialize for AccidentalDisplay
impl Serialize for AccidentalDisplay
impl StructuralPartialEq for AccidentalDisplay
Auto Trait Implementations§
impl Freeze for AccidentalDisplay
impl RefUnwindSafe for AccidentalDisplay
impl Send for AccidentalDisplay
impl Sync for AccidentalDisplay
impl Unpin for AccidentalDisplay
impl UnsafeUnpin for AccidentalDisplay
impl UnwindSafe for AccidentalDisplay
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