pub enum PaperSize {
A0,
A1,
A2,
A3,
A4,
A5,
A6,
Letter,
Legal,
Tabloid,
}
Expand description
Paper size
Variants§
A0
A0 (84.1cm × 118.9cm)
A1
A1 (59.4cm × 84.1cm)
A2
A2 (42.0cm × 59.4cm)
A3
A3 (29.7cm × 42.0cm)
A4
A4 (21.0cm × 29.7 cm)
A5
A5 (14.8cm × 21.0cm)
A6
A6 (10.5cm × 14.8cm)
Letter
US Letter (11.0in × 8.5in)
Legal
Legal (17in × 8.5in)
Tabloid
Tabloid (17in × 11in)
Implementations§
source§impl PaperSize
impl PaperSize
sourcepub fn paper_width(&self) -> f64
pub fn paper_width(&self) -> f64
The width
sourcepub fn paper_height(&self) -> f64
pub fn paper_height(&self) -> f64
The height
Trait Implementations§
source§impl PartialEq for PaperSize
impl PartialEq for PaperSize
impl Eq for PaperSize
impl StructuralPartialEq for PaperSize
Auto Trait Implementations§
impl Freeze for PaperSize
impl RefUnwindSafe for PaperSize
impl Send for PaperSize
impl Sync for PaperSize
impl Unpin for PaperSize
impl UnwindSafe for PaperSize
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