pub struct Placed<'a> { /* private fields */ }Expand description
One element of a stream with its place in it: its offset, its offset in the measure holding it, and the key signature, metre and tempo in force where it stands.
Implementations§
Source§impl<'a> Placed<'a>
impl<'a> Placed<'a>
Sourcepub fn element(&self) -> &'a StreamElement
pub fn element(&self) -> &'a StreamElement
The element itself.
Sourcepub fn measure_offset(&self) -> Option<FloatType>
pub fn measure_offset(&self) -> Option<FloatType>
The offset from the start of the measure holding the element, or
None outside any measure.
Sourcepub fn key_signature(&self) -> Option<&'a KeySignature>
pub fn key_signature(&self) -> Option<&'a KeySignature>
The key signature in force where the element stands.
Sourcepub fn time_signature(&self) -> Option<&'a TimeSignature>
pub fn time_signature(&self) -> Option<&'a TimeSignature>
The metre in force where the element stands.
Sourcepub fn metronome_mark(&self) -> Option<&'a MetronomeMark>
pub fn metronome_mark(&self) -> Option<&'a MetronomeMark>
The tempo in force where the element stands.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Placed<'a>
impl<'a> RefUnwindSafe for Placed<'a>
impl<'a> Send for Placed<'a>
impl<'a> Sync for Placed<'a>
impl<'a> Unpin for Placed<'a>
impl<'a> UnsafeUnpin for Placed<'a>
impl<'a> UnwindSafe for Placed<'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