pub struct PageLayout {
pub page_number: Option<i64>,
pub left_margin: Option<Tenths>,
pub right_margin: Option<Tenths>,
pub top_margin: Option<Tenths>,
pub bottom_margin: Option<Tenths>,
pub page_height: Option<Tenths>,
pub page_width: Option<Tenths>,
pub is_new: Option<bool>,
}Expand description
How a page is laid out, and whether one starts here: music21’s
PageLayout, MusicXML’s <print new-page> and <page-layout>.
Fields§
§page_number: Option<i64>The page’s number: pageNumber.
left_margin: Option<Tenths>leftMargin.
right_margin: Option<Tenths>rightMargin.
top_margin: Option<Tenths>topMargin.
bottom_margin: Option<Tenths>bottomMargin.
page_height: Option<Tenths>pageHeight.
page_width: Option<Tenths>pageWidth.
is_new: Option<bool>Whether a new page starts here: isNew.
Trait Implementations§
Source§impl Clone for PageLayout
impl Clone for PageLayout
Source§impl Debug for PageLayout
impl Debug for PageLayout
Source§impl Default for PageLayout
impl Default for PageLayout
Source§impl<'de> Deserialize<'de> for PageLayout
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PageLayout
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 PageLayout
impl PartialEq for PageLayout
Source§impl Serialize for PageLayout
Available on crate feature serde only.
impl Serialize for PageLayout
Available on crate feature
serde only.impl StructuralPartialEq for PageLayout
Auto Trait Implementations§
impl Freeze for PageLayout
impl RefUnwindSafe for PageLayout
impl Send for PageLayout
impl Sync for PageLayout
impl Unpin for PageLayout
impl UnsafeUnpin for PageLayout
impl UnwindSafe for PageLayout
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