Skip to main content

PredefinedMediaName

Enum PredefinedMediaName 

Source
pub enum PredefinedMediaName {
Show 170 variants BusinessCard, CreditCard, ISOA0, ISOA1, ISOA10, ISOA2, ISOA3, ISOA3Extra, ISOA3Rotated, ISOA4, ISOA4Extra, ISOA4Rotated, ISOA5, ISOA5Extra, ISOA5Rotated, ISOA6, ISOA6Rotated, ISOA7, ISOA8, ISOA9, ISOB0, ISOB1, ISOB10, ISOB2, ISOB3, ISOB4, ISOB4Envelope, ISOB5Envelope, ISOB5Extra, ISOB7, ISOB8, ISOB9, ISOC0, ISOC1, ISOC10, ISOC2, ISOC3, ISOC3Envelope, ISOC4, ISOC4Envelope, ISOC5, ISOC5Envelope, ISOC6, ISOC6C5Envelope, ISOC6Envelope, ISOC7, ISOC8, ISOC9, ISODLEnvelope, ISODLEnvelopeRotated, ISOSRA3, JISB0, JISB1, JISB10, JISB2, JISB3, JISB4, JISB4Rotated, JISB5, JISB5Rotated, JISB6, JISB6Rotated, JISB7, JISB8, JISB9, Japan2LPhoto, JapanChou3Envelope, JapanChou3EnvelopeRotated, JapanChou4Envelope, JapanChou4EnvelopeRotated, JapanDoubleHagakiPostcard, JapanDoubleHagakiPostcardRotated, JapanHagakiPostcard, JapanHagakiPostcardRotated, JapanKaku2Envelope, JapanKaku2EnvelopeRotated, JapanKaku3Envelope, JapanKaku3EnvelopeRotated, JapanLPhoto, JapanQuadrupleHagakiPostcard, JapanYou1Envelope, JapanYou2Envelope, JapanYou3Envelope, JapanYou4Envelope, JapanYou4EnvelopeRotated, JapanYou6Envelope, JapanYou6EnvelopeRotated, NorthAmerica10x11, NorthAmerica10x12, NorthAmerica10x14, NorthAmerica11x17, NorthAmerica14x17, NorthAmerica4x6, NorthAmerica4x8, NorthAmerica5x7, NorthAmerica8x10, NorthAmerica9x11, NorthAmericaArchitectureASheet, NorthAmericaArchitectureBSheet, NorthAmericaArchitectureCSheet, NorthAmericaArchitectureDSheet, NorthAmericaArchitectureESheet, NorthAmericaCSheet, NorthAmericaDSheet, NorthAmericaESheet, NorthAmericaExecutive, NorthAmericaGermanLegalFanfold, NorthAmericaGermanStandardFanfold, NorthAmericaLegal, NorthAmericaLegalExtra, NorthAmericaLetter, NorthAmericaLetterExtra, NorthAmericaLetterPlus, NorthAmericaLetterRotated, NorthAmericaMonarchEnvelope, NorthAmericaNote, NorthAmericaNumber10Envelope, NorthAmericaNumber10EnvelopeRotated, NorthAmericaNumber11Envelope, NorthAmericaNumber12Envelope, NorthAmericaNumber14Envelope, NorthAmericaNumber9Envelope, NorthAmericaPersonalEnvelope, NorthAmericaQuarto, NorthAmericaStatement, NorthAmericaSuperA, NorthAmericaSuperB, NorthAmericaTabloid, NorthAmericaTabloidExtra, OtherMetricA3Plus, OtherMetricA4Plus, OtherMetricFolio, OtherMetricInviteEnvelope, OtherMetricItalianEnvelope, PRC10Envelope, PRC10EnvelopeRotated, PRC16K, PRC16KRotated, PRC1Envelope, PRC1EnvelopeRotated, PRC2Envelope, PRC2EnvelopeRotated, PRC32K, PRC32KBig, PRC32KRotated, PRC3Envelope, PRC3EnvelopeRotated, PRC4Envelope, PRC4EnvelopeRotated, PRC5Envelope, PRC5EnvelopeRotated, PRC6Envelope, PRC6EnvelopeRotated, PRC7Envelope, PRC7EnvelopeRotated, PRC8Envelope, PRC8EnvelopeRotated, PRC9Envelope, PRC9EnvelopeRotated, Roll04Inch, Roll06Inch, Roll08Inch, Roll12Inch, Roll15Inch, Roll18Inch, Roll22Inch, Roll24Inch, Roll30Inch, Roll36Inch, Roll54Inch,
}
Expand description

Represents a predefined media name.

Variants§

§

BusinessCard

§

CreditCard

§

ISOA0

§

ISOA1

§

ISOA10

§

ISOA2

§

ISOA3

§

ISOA3Extra

§

ISOA3Rotated

§

ISOA4

§

ISOA4Extra

§

ISOA4Rotated

§

ISOA5

§

ISOA5Extra

§

ISOA5Rotated

§

ISOA6

§

ISOA6Rotated

§

ISOA7

§

ISOA8

§

ISOA9

§

ISOB0

§

ISOB1

§

ISOB10

§

ISOB2

§

ISOB3

§

ISOB4

§

ISOB4Envelope

§

ISOB5Envelope

§

ISOB5Extra

§

ISOB7

§

ISOB8

§

ISOB9

§

ISOC0

§

ISOC1

§

ISOC10

§

ISOC2

§

ISOC3

§

ISOC3Envelope

§

ISOC4

§

ISOC4Envelope

§

ISOC5

§

ISOC5Envelope

§

ISOC6

§

ISOC6C5Envelope

§

ISOC6Envelope

§

ISOC7

§

ISOC8

§

ISOC9

§

ISODLEnvelope

§

ISODLEnvelopeRotated

§

ISOSRA3

§

JISB0

§

JISB1

§

JISB10

§

JISB2

§

JISB3

§

JISB4

§

JISB4Rotated

§

JISB5

§

JISB5Rotated

§

JISB6

§

JISB6Rotated

§

JISB7

§

JISB8

§

JISB9

§

Japan2LPhoto

§

JapanChou3Envelope

§

JapanChou3EnvelopeRotated

§

JapanChou4Envelope

§

JapanChou4EnvelopeRotated

§

JapanDoubleHagakiPostcard

§

JapanDoubleHagakiPostcardRotated

§

JapanHagakiPostcard

§

JapanHagakiPostcardRotated

§

JapanKaku2Envelope

§

JapanKaku2EnvelopeRotated

§

JapanKaku3Envelope

§

JapanKaku3EnvelopeRotated

§

JapanLPhoto

§

JapanQuadrupleHagakiPostcard

§

JapanYou1Envelope

§

JapanYou2Envelope

§

JapanYou3Envelope

§

JapanYou4Envelope

§

JapanYou4EnvelopeRotated

§

JapanYou6Envelope

§

JapanYou6EnvelopeRotated

§

NorthAmerica10x11

§

NorthAmerica10x12

§

NorthAmerica10x14

§

NorthAmerica11x17

§

NorthAmerica14x17

§

NorthAmerica4x6

§

NorthAmerica4x8

§

NorthAmerica5x7

§

NorthAmerica8x10

§

NorthAmerica9x11

§

NorthAmericaArchitectureASheet

§

NorthAmericaArchitectureBSheet

§

NorthAmericaArchitectureCSheet

§

NorthAmericaArchitectureDSheet

§

NorthAmericaArchitectureESheet

§

NorthAmericaCSheet

§

NorthAmericaDSheet

§

NorthAmericaESheet

§

NorthAmericaExecutive

§

NorthAmericaGermanLegalFanfold

§

NorthAmericaGermanStandardFanfold

§

NorthAmericaLegal

§

NorthAmericaLegalExtra

§

NorthAmericaLetter

§

NorthAmericaLetterExtra

§

NorthAmericaLetterPlus

§

NorthAmericaLetterRotated

§

NorthAmericaMonarchEnvelope

§

NorthAmericaNote

§

NorthAmericaNumber10Envelope

§

NorthAmericaNumber10EnvelopeRotated

§

NorthAmericaNumber11Envelope

§

NorthAmericaNumber12Envelope

§

NorthAmericaNumber14Envelope

§

NorthAmericaNumber9Envelope

§

NorthAmericaPersonalEnvelope

§

NorthAmericaQuarto

§

NorthAmericaStatement

§

NorthAmericaSuperA

§

NorthAmericaSuperB

§

NorthAmericaTabloid

§

NorthAmericaTabloidExtra

§

OtherMetricA3Plus

§

OtherMetricA4Plus

§

OtherMetricFolio

§

OtherMetricInviteEnvelope

§

OtherMetricItalianEnvelope

§

PRC10Envelope

§

PRC10EnvelopeRotated

§

PRC16K

§

PRC16KRotated

§

PRC1Envelope

§

PRC1EnvelopeRotated

§

PRC2Envelope

§

PRC2EnvelopeRotated

§

PRC32K

§

PRC32KBig

§

PRC32KRotated

§

PRC3Envelope

§

PRC3EnvelopeRotated

§

PRC4Envelope

§

PRC4EnvelopeRotated

§

PRC5Envelope

§

PRC5EnvelopeRotated

§

PRC6Envelope

§

PRC6EnvelopeRotated

§

PRC7Envelope

§

PRC7EnvelopeRotated

§

PRC8Envelope

§

PRC8EnvelopeRotated

§

PRC9Envelope

§

PRC9EnvelopeRotated

§

Roll04Inch

§

Roll06Inch

§

Roll08Inch

§

Roll12Inch

§

Roll15Inch

§

Roll18Inch

§

Roll22Inch

§

Roll24Inch

§

Roll30Inch

§

Roll36Inch

§

Roll54Inch

Trait Implementations§

Source§

impl Clone for PredefinedMediaName

Source§

fn clone(&self) -> PredefinedMediaName

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PredefinedMediaName

Source§

impl Debug for PredefinedMediaName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for PredefinedMediaName

Source§

impl FromStr for PredefinedMediaName

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<PredefinedMediaName, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for PredefinedMediaName

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for PredefinedMediaName

Source§

fn eq(&self, other: &PredefinedMediaName) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PredefinedName for PredefinedMediaName

Source§

fn from_name(name: &OwnedName) -> Option<Self>

Get predefined media name from the given name.

Source§

impl StructuralPartialEq for PredefinedMediaName

Source§

impl TryFrom<&str> for PredefinedMediaName

Source§

type Error = ParseError

The type returned in the event of a conversion error.
Source§

fn try_from( s: &str, ) -> Result<PredefinedMediaName, <Self as TryFrom<&str>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.