pub struct ScoreLayout {
pub scaling_millimeters: Option<Tenths>,
pub scaling_tenths: Option<Tenths>,
pub page_layout: Option<PageLayout>,
pub system_layout: Option<SystemLayout>,
pub staff_layouts: Vec<StaffLayout>,
}Expand description
The scaling and the layouts a score starts with: music21’s
ScoreLayout, read from MusicXML’s <defaults>.
Fields§
§scaling_millimeters: Option<Tenths>How many millimetres ScoreLayout::scaling_tenths tenths are:
scalingMillimeters.
scaling_tenths: Option<Tenths>How many tenths ScoreLayout::scaling_millimeters millimetres
are: scalingTenths.
page_layout: Option<PageLayout>The page the score starts on: pageLayout.
system_layout: Option<SystemLayout>The systems the score starts with: systemLayout.
staff_layouts: Vec<StaffLayout>The staves the score starts with: staffLayoutList.
Implementations§
Source§impl ScoreLayout
impl ScoreLayout
Sourcepub fn tenths_to_millimeters(&self, tenths: FloatType) -> FloatType
pub fn tenths_to_millimeters(&self, tenths: FloatType) -> FloatType
How many millimetres a number of tenths is, rounded to six places,
or nought where the scaling is not known: music21’s
tenthsToMillimeters.
Trait Implementations§
Source§impl Clone for ScoreLayout
impl Clone for ScoreLayout
Source§impl Debug for ScoreLayout
impl Debug for ScoreLayout
Source§impl Default for ScoreLayout
impl Default for ScoreLayout
Source§impl<'de> Deserialize<'de> for ScoreLayout
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ScoreLayout
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
Source§impl PartialEq for ScoreLayout
impl PartialEq for ScoreLayout
Source§impl Serialize for ScoreLayout
Available on crate feature serde only.
impl Serialize for ScoreLayout
Available on crate feature
serde only.impl StructuralPartialEq for ScoreLayout
Auto Trait Implementations§
impl Freeze for ScoreLayout
impl RefUnwindSafe for ScoreLayout
impl Send for ScoreLayout
impl Sync for ScoreLayout
impl Unpin for ScoreLayout
impl UnsafeUnpin for ScoreLayout
impl UnwindSafe for ScoreLayout
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