pub struct OffsetMapEntry {
pub element: StreamElement,
pub offset: FloatType,
pub end_time: FloatType,
pub voice: Option<usize>,
}Expand description
One element of a stream with where it starts and ends and the voice it
is in: music21’s OffsetMap.
Fields§
§element: StreamElementThe element.
offset: FloatTypeWhere it starts.
end_time: FloatTypeWhere it ends.
voice: Option<usize>The voice it is in, by its place among the stream’s voices, or nothing for an element outside them.
Trait Implementations§
Source§impl Clone for OffsetMapEntry
impl Clone for OffsetMapEntry
Auto Trait Implementations§
impl Freeze for OffsetMapEntry
impl RefUnwindSafe for OffsetMapEntry
impl Send for OffsetMapEntry
impl Sync for OffsetMapEntry
impl Unpin for OffsetMapEntry
impl UnsafeUnpin for OffsetMapEntry
impl UnwindSafe for OffsetMapEntry
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