pub struct PageLayout {
pub width: Length,
pub height: Length,
pub margin: Edges<Length>,
}Expand description
A page’s dimensions and margins, from a style:page-layout.
Fields§
§width: LengthThe page’s width.
height: LengthIts height.
margin: Edges<Length>The margins inside it.
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§fn default() -> Self
fn default() -> Self
US Letter portrait with one-inch margins.
Reached only by a document that declares no page layout at all, which no
office application produces: the answer normally comes from the document’s
own master page and this is never consulted. The size still has to be
something, and it is the paper the producer on this machine writes —
LibreOffice 25.2 puts 8.5in by 11in in every document it creates here.
A4 would be the other choice and neither is more right.
Source§impl PartialEq for PageLayout
impl PartialEq for PageLayout
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