pub struct Realization {
pub before: Vec<Note>,
pub main: Option<Note>,
pub after: Vec<Note>,
}Expand description
A note realized as an ornament plays it: the notes before what is left of it, what is left (nothing where the ornament takes the whole note, as a trill does), and the notes after.
Fields§
§before: Vec<Note>The notes played before the main note.
main: Option<Note>What is left of the main note.
after: Vec<Note>The notes played after it.
Implementations§
Source§impl Realization
impl Realization
Sourcepub fn into_notes(self) -> Vec<Note>
pub fn into_notes(self) -> Vec<Note>
Every note in the order played.
Trait Implementations§
Source§impl Clone for Realization
impl Clone for Realization
Auto Trait Implementations§
impl Freeze for Realization
impl RefUnwindSafe for Realization
impl Send for Realization
impl Sync for Realization
impl Unpin for Realization
impl UnsafeUnpin for Realization
impl UnwindSafe for Realization
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