pub struct SegmentLabel {
pub part: Option<usize>,
pub first: usize,
pub last: usize,
pub label: String,
}Expand description
Where one run found is to be marked, and with what: the part it is in, the places of its first and last notes among that part’s leaves, and the name it is marked with, which is empty for a run matched to nothing.
Fields§
§part: Option<usize>The part the run is in, counted from nought, or nothing where the stream searched has no parts.
first: usizeWhere its first note stands among the part’s leaves.
last: usizeWhere its last note stands.
label: StringThe name to write as a lyric of the first note.
Trait Implementations§
Source§impl Clone for SegmentLabel
impl Clone for SegmentLabel
Source§impl Debug for SegmentLabel
impl Debug for SegmentLabel
impl Eq for SegmentLabel
Source§impl PartialEq for SegmentLabel
impl PartialEq for SegmentLabel
impl StructuralPartialEq for SegmentLabel
Auto Trait Implementations§
impl Forget for SegmentLabel
impl Freeze for SegmentLabel
impl RefUnwindSafe for SegmentLabel
impl Send for SegmentLabel
impl Sync for SegmentLabel
impl Unpin for SegmentLabel
impl UnsafeUnpin for SegmentLabel
impl UnwindSafe for SegmentLabel
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