pub enum FullMeasure {
Auto,
Yes,
No,
Always,
}Expand description
What a rest says of its measure: music21’s fullMeasure, which is
True, False, 'auto' or 'always'.
use music21::{Duration, FullMeasure, Rest};
let mut rest = Rest::new(Duration::half());
assert_eq!(rest.full_measure(), FullMeasure::Auto);
rest.set_full_measure(FullMeasure::Always);
assert_eq!(rest.full_measure(), FullMeasure::Always);Variants§
Auto
music21’s 'auto': a whole-measure rest where it fills its measure.
Yes
music21’s True: it stands for its whole measure. Braille writes it
as a measure rest whatever its length.
No
music21’s False: it is only as long as it is written.
Always
music21’s 'always': MusicXML writes it as a measure rest whatever
its length; braille writes it at its length.
Trait Implementations§
Source§impl Clone for FullMeasure
impl Clone for FullMeasure
impl Copy for FullMeasure
Source§impl Debug for FullMeasure
impl Debug for FullMeasure
Source§impl Default for FullMeasure
impl Default for FullMeasure
Source§impl<'de> Deserialize<'de> for FullMeasure
Available on crate feature serde only.Reads a saved FullMeasure, or what was saved before there was one:
null, true or false.
impl<'de> Deserialize<'de> for FullMeasure
Available on crate feature
serde only.Reads a saved FullMeasure, or what was saved before there was one:
null, true or false.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FullMeasure
Source§impl Hash for FullMeasure
impl Hash for FullMeasure
Source§impl PartialEq for FullMeasure
impl PartialEq for FullMeasure
Source§impl Serialize for FullMeasure
Available on crate feature serde only.
impl Serialize for FullMeasure
Available on crate feature
serde only.impl StructuralPartialEq for FullMeasure
Auto Trait Implementations§
impl Forget for FullMeasure
impl Freeze for FullMeasure
impl RefUnwindSafe for FullMeasure
impl Send for FullMeasure
impl Sync for FullMeasure
impl Unpin for FullMeasure
impl UnsafeUnpin for FullMeasure
impl UnwindSafe for FullMeasure
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