[][src]Enum genpdf::PaperSize

pub enum PaperSize {
    A4,
    Legal,
    Letter,
}

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

impl Clone for PaperSize[src]

impl Copy for PaperSize[src]

impl Debug for PaperSize[src]

impl Eq for PaperSize[src]

impl From<PaperSize> for Size[src]

impl Ord for PaperSize[src]

impl PartialEq<PaperSize> for PaperSize[src]

impl PartialOrd<PaperSize> for PaperSize[src]

impl StructuralEq for PaperSize[src]

impl StructuralPartialEq for PaperSize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.