pub struct TemplateOptions {
pub fill_with_rests: bool,
pub remove: fn(&StreamElement) -> bool,
pub retain_voices: bool,
pub remove_all: bool,
pub exempt: Option<fn(&StreamElement) -> bool>,
}Expand description
What Stream::template keeps: music21’s template arguments.
Fields§
§fill_with_rests: boolWhether what is taken away leaves rests in its place: music21’s
fillWithRests.
remove: fn(&StreamElement) -> boolWhich elements are taken away: music21’s removeClasses, by default
notes, chords, rests and the like, dynamics and expressions.
retain_voices: boolWhether voices are kept, emptied as everything else is: music21’s
retainVoices. Without, a voice goes as a note does.
remove_all: boolWhether everything but the streams is taken away: music21’s
removeAll.
exempt: Option<fn(&StreamElement) -> bool>Elements kept whatever else says: music21’s exemptFromRemove.
Trait Implementations§
Source§impl Clone for TemplateOptions
impl Clone for TemplateOptions
impl Copy for TemplateOptions
Source§impl Debug for TemplateOptions
impl Debug for TemplateOptions
Auto Trait Implementations§
impl Freeze for TemplateOptions
impl RefUnwindSafe for TemplateOptions
impl Send for TemplateOptions
impl Sync for TemplateOptions
impl Unpin for TemplateOptions
impl UnsafeUnpin for TemplateOptions
impl UnwindSafe for TemplateOptions
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