#[non_exhaustive]pub struct SegmentOptions {Show 13 fields
pub cancel_outgoing_key_sig: bool,
pub descending_chords: Option<bool>,
pub dummy_rest_length: Option<usize>,
pub max_line_length: usize,
pub show_clef_signs: bool,
pub show_first_measure_number: bool,
pub show_hand: Option<Hand>,
pub show_heading: bool,
pub show_long_slurs_and_ties_together: Option<bool>,
pub show_short_slurs_and_ties_together: bool,
pub slur_long_phrase_with_brackets: bool,
pub suppress_octave_marks: bool,
pub upper_first_in_note_fingering: bool,
}Expand description
The options music21’s translation takes, as a segment reads them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cancel_outgoing_key_sig: boolWhether a key signature cancels the one before it.
descending_chords: Option<bool>Whether chords start out written from the top down, as they do when this is nothing. A bass or tenor clef then turns them upward and a treble or alto clef downward, in its segment and those after it.
dummy_rest_length: Option<usize>How many dummy rests open each segment.
max_line_length: usizeHow many cells a line holds.
show_clef_signs: boolWhether clefs are written.
show_first_measure_number: boolWhether a segment starts with its first measure’s number.
show_hand: Option<Hand>Which hand’s sign starts the lines.
show_heading: boolWhether a segment starts with a heading.
show_long_slurs_and_ties_together: Option<bool>Whether a long slur and a tie on one note are both written.
show_short_slurs_and_ties_together: boolWhether a short slur and a tie on one note are both written.
slur_long_phrase_with_brackets: boolWhether a long phrase’s slur is written with brackets rather than doubled.
suppress_octave_marks: boolWhether octave marks are left out.
upper_first_in_note_fingering: boolWhether a fingering’s upper choice is written first.
Trait Implementations§
Source§impl Clone for SegmentOptions
impl Clone for SegmentOptions
impl Copy for SegmentOptions
Source§impl Debug for SegmentOptions
impl Debug for SegmentOptions
Source§impl Default for SegmentOptions
impl Default for SegmentOptions
impl Eq for SegmentOptions
Source§impl PartialEq for SegmentOptions
impl PartialEq for SegmentOptions
impl StructuralPartialEq for SegmentOptions
Auto Trait Implementations§
impl Forget for SegmentOptions
impl Freeze for SegmentOptions
impl RefUnwindSafe for SegmentOptions
impl Send for SegmentOptions
impl Sync for SegmentOptions
impl Unpin for SegmentOptions
impl UnsafeUnpin for SegmentOptions
impl UnwindSafe for SegmentOptions
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
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> ⓘ
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> ⓘ
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