pub struct MultiRest {
pub use_symbols: bool,
pub max_symbols: u32,
pub count: Option<usize>,
}Expand description
How a rest of several measures is drawn and counted: music21’s
MultiMeasureRest.useSymbols, maxSymbols and numRests.
Fields§
§use_symbols: boolWhether it is drawn with rest symbols, a breve or a long, rather than a bar with a number over it.
max_symbols: u32How many measures at most are drawn with symbols.
count: Option<usize>How many measures it is said to last where that is not how many rests it joins.
Trait Implementations§
impl Copy for MultiRest
Source§impl<'de> Deserialize<'de> for MultiRest
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MultiRest
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MultiRest
impl StructuralPartialEq for MultiRest
Auto Trait Implementations§
impl Forget for MultiRest
impl Freeze for MultiRest
impl RefUnwindSafe for MultiRest
impl Send for MultiRest
impl Sync for MultiRest
impl Unpin for MultiRest
impl UnsafeUnpin for MultiRest
impl UnwindSafe for MultiRest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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