pub enum PageSize {
A3,
A4,
A5,
Letter,
Legal,
Custom {
width: f32,
height: f32,
},
}Expand description
A page size, in default user-space units (1/72 inch), portrait.
Variants§
A3
297 × 420 mm.
A4
210 × 297 mm.
A5
148 × 210 mm.
Letter
8.5 × 11 in.
Legal
8.5 × 14 in.
Custom
Explicit dimensions in user-space units.
Implementations§
Trait Implementations§
impl Copy for PageSize
impl StructuralPartialEq for PageSize
Auto Trait Implementations§
impl Freeze for PageSize
impl RefUnwindSafe for PageSize
impl Send for PageSize
impl Sync for PageSize
impl Unpin for PageSize
impl UnsafeUnpin for PageSize
impl UnwindSafe for PageSize
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