pub struct SegmentNote<'a> {
pub element: &'a StreamElement,
pub measure: Option<IntegerType>,
pub offset: FloatType,
pub leaf: usize,
}Expand description
One note or chord of a ContiguousSegment, and where it stands.
Fields§
§element: &'a StreamElementThe note or chord.
measure: Option<IntegerType>The number of the measure it is in, if it is in one.
offset: FloatTypeIts offset in the stream that holds it, a measure or a voice:
music21’s offset.
leaf: usizeIts position among the leaves of its part, or of the stream searched
where that has no parts: see Stream::leaves.
Trait Implementations§
Source§impl<'a> Clone for SegmentNote<'a>
impl<'a> Clone for SegmentNote<'a>
impl<'a> Copy for SegmentNote<'a>
Auto Trait Implementations§
impl<'a> Freeze for SegmentNote<'a>
impl<'a> RefUnwindSafe for SegmentNote<'a>
impl<'a> Send for SegmentNote<'a>
impl<'a> Sync for SegmentNote<'a>
impl<'a> Unpin for SegmentNote<'a>
impl<'a> UnsafeUnpin for SegmentNote<'a>
impl<'a> UnwindSafe for SegmentNote<'a>
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