#[non_exhaustive]pub struct SectionBasedLayoutPaperCanvasSizeOptions { /* private fields */ }
Expand description
The options for a paper canvas of a section-based layout.
Implementations§
source§impl SectionBasedLayoutPaperCanvasSizeOptions
impl SectionBasedLayoutPaperCanvasSizeOptions
sourcepub fn paper_size(&self) -> Option<&PaperSize>
pub fn paper_size(&self) -> Option<&PaperSize>
The paper size that is used to define canvas dimensions.
sourcepub fn paper_orientation(&self) -> Option<&PaperOrientation>
pub fn paper_orientation(&self) -> Option<&PaperOrientation>
The paper orientation that is used to define canvas dimensions. Choose one of the following options:
-
PORTRAIT
-
LANDSCAPE
sourcepub fn paper_margin(&self) -> Option<&Spacing>
pub fn paper_margin(&self) -> Option<&Spacing>
Defines the spacing between the canvas content and the top, bottom, left, and right edges.
source§impl SectionBasedLayoutPaperCanvasSizeOptions
impl SectionBasedLayoutPaperCanvasSizeOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SectionBasedLayoutPaperCanvasSizeOptions
.
Trait Implementations§
source§impl Clone for SectionBasedLayoutPaperCanvasSizeOptions
impl Clone for SectionBasedLayoutPaperCanvasSizeOptions
source§fn clone(&self) -> SectionBasedLayoutPaperCanvasSizeOptions
fn clone(&self) -> SectionBasedLayoutPaperCanvasSizeOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<SectionBasedLayoutPaperCanvasSizeOptions> for SectionBasedLayoutPaperCanvasSizeOptions
impl PartialEq<SectionBasedLayoutPaperCanvasSizeOptions> for SectionBasedLayoutPaperCanvasSizeOptions
source§fn eq(&self, other: &SectionBasedLayoutPaperCanvasSizeOptions) -> bool
fn eq(&self, other: &SectionBasedLayoutPaperCanvasSizeOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.