pub struct SystemLayout {
pub left_margin: Option<Tenths>,
pub right_margin: Option<Tenths>,
pub top_margin: Option<Tenths>,
pub bottom_margin: Option<Tenths>,
pub distance: Option<Tenths>,
pub top_distance: Option<Tenths>,
pub is_new: Option<bool>,
}Expand description
How a system is laid out, and whether one starts here: music21’s
SystemLayout, MusicXML’s <print new-system> and <system-layout>.
Fields§
§left_margin: Option<Tenths>leftMargin.
right_margin: Option<Tenths>rightMargin.
top_margin: Option<Tenths>topMargin.
bottom_margin: Option<Tenths>bottomMargin.
distance: Option<Tenths>How far the system stands from the one before: distance.
top_distance: Option<Tenths>How far the first system of a page stands from its top:
topDistance.
is_new: Option<bool>Whether a new system starts here: isNew.
Trait Implementations§
Source§impl Clone for SystemLayout
impl Clone for SystemLayout
Source§impl Debug for SystemLayout
impl Debug for SystemLayout
Source§impl Default for SystemLayout
impl Default for SystemLayout
Source§impl<'de> Deserialize<'de> for SystemLayout
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SystemLayout
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 SystemLayout
impl PartialEq for SystemLayout
Source§impl Serialize for SystemLayout
Available on crate feature serde only.
impl Serialize for SystemLayout
Available on crate feature
serde only.impl StructuralPartialEq for SystemLayout
Auto Trait Implementations§
impl Freeze for SystemLayout
impl RefUnwindSafe for SystemLayout
impl Send for SystemLayout
impl Sync for SystemLayout
impl Unpin for SystemLayout
impl UnsafeUnpin for SystemLayout
impl UnwindSafe for SystemLayout
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