pub enum PaperFormat {
Letter,
Legal,
Tabloid,
Ledger,
A0,
A1,
A2,
A3,
A4,
A5,
A6,
Custom {
width: f64,
height: f64,
},
}Expand description
Paper format for PDF generation.
Variants§
Letter
Letter size (8.5 x 11 inches).
Legal
Legal size (8.5 x 14 inches).
Tabloid
Tabloid size (11 x 17 inches).
Ledger
Ledger size (17 x 11 inches).
A0
A0 size (33.1 x 46.8 inches).
A1
A1 size (23.4 x 33.1 inches).
A2
A2 size (16.5 x 23.4 inches).
A3
A3 size (11.7 x 16.5 inches).
A4
A4 size (8.27 x 11.69 inches).
A5
A5 size (5.83 x 8.27 inches).
A6
A6 size (4.13 x 5.83 inches).
Custom
Custom size in inches.
Implementations§
Trait Implementations§
Source§impl Clone for PaperFormat
impl Clone for PaperFormat
Source§fn clone(&self) -> PaperFormat
fn clone(&self) -> PaperFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaperFormat
Source§impl Debug for PaperFormat
impl Debug for PaperFormat
Source§impl Default for PaperFormat
impl Default for PaperFormat
Source§fn default() -> PaperFormat
fn default() -> PaperFormat
Returns the “default value” for a type. Read more
Source§impl PartialEq for PaperFormat
impl PartialEq for PaperFormat
Source§fn eq(&self, other: &PaperFormat) -> bool
fn eq(&self, other: &PaperFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaperFormat
Auto Trait Implementations§
impl Freeze for PaperFormat
impl RefUnwindSafe for PaperFormat
impl Send for PaperFormat
impl Sync for PaperFormat
impl Unpin for PaperFormat
impl UnsafeUnpin for PaperFormat
impl UnwindSafe for PaperFormat
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