pub enum PaperSize {
A4,
Legal,
Letter,
}Expand description
A paper size like A4, legal or letter.
This enum provides variants for typical paper sizes that can be converted into Size
instances.
Variants§
A4
The A4 paper size (210x297mm).
Legal
The legal paper size (216x356mm).
Letter
The letter paper size (216x279mm).
Trait Implementations§
Source§impl Ord for PaperSize
impl Ord for PaperSize
Source§impl PartialOrd for PaperSize
impl PartialOrd for PaperSize
impl Copy 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