pub struct NwcStaff {Show 17 fields
pub name: Vec<u8>,
pub label: Vec<u8>,
pub instrument_name: Vec<u8>,
pub group: Vec<u8>,
pub lines: u8,
pub layer_with_next_staff: Option<i32>,
pub transposition: Option<i32>,
pub part_volume: Option<i32>,
pub stereo_pan: Option<i32>,
pub color: u8,
pub align_syllable: Option<i32>,
pub number_of_lyrics: i32,
pub lyric_alignment: i32,
pub staff_offset: i32,
pub lyrics: Vec<Vec<Vec<u8>>>,
pub number_of_objects: i32,
pub objects: Vec<NwcObject>,
}Expand description
A staff and its objects: music21’s NWCStaff.
Fields§
§name: Vec<u8>§label: Vec<u8>§instrument_name: Vec<u8>§group: Vec<u8>§lines: u8§layer_with_next_staff: Option<i32>§transposition: Option<i32>Semitones up, where the file says; music21 writes None otherwise.
part_volume: Option<i32>§stereo_pan: Option<i32>§color: u8§align_syllable: Option<i32>§number_of_lyrics: i32§lyric_alignment: i32§staff_offset: i32§lyrics: Vec<Vec<Vec<u8>>>Each verse’s syllables.
number_of_objects: i32§objects: Vec<NwcObject>Implementations§
Trait Implementations§
impl Eq for NwcStaff
impl StructuralPartialEq for NwcStaff
Auto Trait Implementations§
impl Forget for NwcStaff
impl Freeze for NwcStaff
impl Move for NwcStaff
impl RefUnwindSafe for NwcStaff
impl Send for NwcStaff
impl Sync for NwcStaff
impl Unpin for NwcStaff
impl UnsafeUnpin for NwcStaff
impl UnwindSafe for NwcStaff
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
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> ⓘ
Converts
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> ⓘ
Converts
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