pub struct MeasureFit {
pub shift: FloatType,
pub padding_left: Option<FloatType>,
pub padding_right: Option<FloatType>,
pub fill_with_rest: bool,
pub overfull_ignored: bool,
pub last_was_short: bool,
}Available on crate feature
musicxml only.Expand description
How a measure sits in its part: music21’s
adjustTimeAttributesFromMeasure.
Fields§
§shift: FloatTypeHow far the next measure starts after this one.
padding_left: Option<FloatType>The padding of a pickup, where it is one.
padding_right: Option<FloatType>What a measure cut short lacks at its end.
fill_with_rest: boolWhether an empty measure is filled with a bar’s rest.
overfull_ignored: boolWhether it is overfull by an amount music21 takes for a mistake, and so takes the bar’s length instead; music21 warns then.
last_was_short: boolWhether the next measure follows one cut short.
Trait Implementations§
Source§impl Clone for MeasureFit
impl Clone for MeasureFit
impl Copy for MeasureFit
Source§impl Debug for MeasureFit
impl Debug for MeasureFit
Source§impl Default for MeasureFit
impl Default for MeasureFit
Source§impl PartialEq for MeasureFit
impl PartialEq for MeasureFit
impl StructuralPartialEq for MeasureFit
Auto Trait Implementations§
impl Forget for MeasureFit
impl Freeze for MeasureFit
impl Move for MeasureFit
impl RefUnwindSafe for MeasureFit
impl Send for MeasureFit
impl Sync for MeasureFit
impl Unpin for MeasureFit
impl UnsafeUnpin for MeasureFit
impl UnwindSafe for MeasureFit
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