pub struct StaffPresentation {
pub kind: StaffKind,
pub lines: u8,
pub line_distance: f32,
pub small: bool,
pub cutaway: bool,
pub visible: bool,
pub notehead_scheme: StaffNoteheadScheme,
pub tablature_rhythm_display: TablatureRhythmDisplay,
pub tablature_fret_mark_style: TablatureFretMarkStyle,
}Expand description
Renderer-independent staff appearance and semantic settings.
Values are expressed in staff-space units, never pixels. Existing tablature
tuning data remains in Staff::tablature; kind records how a renderer
should interpret the staff.
Fields§
§kind: StaffKind§lines: u8§line_distance: f32§small: bool§cutaway: bool§visible: bool§notehead_scheme: StaffNoteheadScheme§tablature_rhythm_display: TablatureRhythmDisplayTablature-only duration presentation. Ignored on non-tablature staves.
tablature_fret_mark_style: TablatureFretMarkStyleTablature fret-label convention. Ignored on non-tablature staves.
Trait Implementations§
Source§impl Clone for StaffPresentation
impl Clone for StaffPresentation
Source§impl Debug for StaffPresentation
impl Debug for StaffPresentation
Source§impl Default for StaffPresentation
impl Default for StaffPresentation
Source§impl<'de> Deserialize<'de> for StaffPresentation
impl<'de> Deserialize<'de> for StaffPresentation
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 StaffPresentation
impl PartialEq for StaffPresentation
Source§impl Serialize for StaffPresentation
impl Serialize for StaffPresentation
impl StructuralPartialEq for StaffPresentation
Auto Trait Implementations§
impl Freeze for StaffPresentation
impl RefUnwindSafe for StaffPresentation
impl Send for StaffPresentation
impl Sync for StaffPresentation
impl Unpin for StaffPresentation
impl UnsafeUnpin for StaffPresentation
impl UnwindSafe for StaffPresentation
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