pub enum LayoutModEvent {
ClefChange {
sign: ClefSign,
pos: i32,
octave: i32,
},
Transposition {
pitch: Pitch,
},
}Variants§
ClefChange
Fields
Transposition
Implementations§
Source§impl LayoutModEvent
impl LayoutModEvent
Sourcepub fn new_treble_clef() -> LayoutModEvent
pub fn new_treble_clef() -> LayoutModEvent
A helper function for creating a basic treble clef.
Sourcepub fn new_bass_clef() -> LayoutModEvent
pub fn new_bass_clef() -> LayoutModEvent
A helper function for creating a basic bass clef.
Sourcepub fn new_alto_clef() -> LayoutModEvent
pub fn new_alto_clef() -> LayoutModEvent
A helper function for creating a basic alto clef.
Trait Implementations§
Source§impl Debug for LayoutModEvent
impl Debug for LayoutModEvent
Source§impl<'de> Deserialize<'de> for LayoutModEvent
impl<'de> Deserialize<'de> for LayoutModEvent
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 LayoutModEvent
impl PartialEq for LayoutModEvent
Source§fn eq(&self, other: &LayoutModEvent) -> bool
fn eq(&self, other: &LayoutModEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LayoutModEvent
impl Serialize for LayoutModEvent
impl StructuralPartialEq for LayoutModEvent
Auto Trait Implementations§
impl Freeze for LayoutModEvent
impl RefUnwindSafe for LayoutModEvent
impl Send for LayoutModEvent
impl Sync for LayoutModEvent
impl Unpin for LayoutModEvent
impl UnsafeUnpin for LayoutModEvent
impl UnwindSafe for LayoutModEvent
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