pub struct CourtesyAccidental {
pub part: usize,
pub staff: usize,
pub measure: usize,
pub voice: usize,
pub note_index: usize,
pub pitch_index: usize,
pub alter: i8,
}Expand description
A courtesy (cautionary) accidental to display in parentheses.
Emitted when the same pitch (step + octave) was chromatically altered in the immediately preceding measure and the renderer needs to remind the performer that the alteration no longer applies.
Fields§
§part: usize§staff: usize§measure: usize§voice: usize§note_index: usize§pitch_index: usizeIndex within note.pitches (0 for single-pitch notes, ≥1 for chords).
alter: i8Accidental to display: 0 = natural, 1 = sharp, -1 = flat, 2 = double-sharp, -2 = double-flat.
Trait Implementations§
Source§impl Clone for CourtesyAccidental
impl Clone for CourtesyAccidental
Source§fn clone(&self) -> CourtesyAccidental
fn clone(&self) -> CourtesyAccidental
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 CourtesyAccidental
impl Debug for CourtesyAccidental
Source§impl<'de> Deserialize<'de> for CourtesyAccidental
impl<'de> Deserialize<'de> for CourtesyAccidental
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
Auto Trait Implementations§
impl Freeze for CourtesyAccidental
impl RefUnwindSafe for CourtesyAccidental
impl Send for CourtesyAccidental
impl Sync for CourtesyAccidental
impl Unpin for CourtesyAccidental
impl UnsafeUnpin for CourtesyAccidental
impl UnwindSafe for CourtesyAccidental
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