DMPAPER

Struct DMPAPER 

Source
pub struct DMPAPER(/* private fields */);
Available on crate feature user only.
Expand description

DEVMODE dmPaperSize (i16).

Implementations§

Source§

impl DMPAPER

Source

pub const unsafe fn as_mut(&mut self) -> &mut i16

Returns a mutable reference to the underlying raw value.

§Safety

Be sure the integer being set is meaningful for the actual type.

Source

pub const unsafe fn from_raw(v: i16) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

Source

pub const fn raw(&self) -> i16

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

Source§

impl DMPAPER

Source

pub const NoValue: Self

None of the actual values (zero).

Source

pub const LETTER: Self

Letter 8 1/2 x 11 in.

Source

pub const LETTERSMALL: Self

Letter Small 8 1/2 x 11 in.

Source

pub const TABLOID: Self

Tabloid 11 x 17 in.

Source

pub const LEDGER: Self

Ledger 17 x 11 in.

Source

pub const LEGAL: Self

Legal 8 1/2 x 14 in.

Source

pub const STATEMENT: Self

Statement 5 1/2 x 8 1/2 in.

Source

pub const EXECUTIVE: Self

Executive 7 1/4 x 10 1/2 in.

Source

pub const A3: Self

A3 297 x 420 mm.

Source

pub const A4: Self

A4 210 x 297 mm.

Source

pub const A4SMALL: Self

A4 Small 210 x 297 mm.

Source

pub const A5: Self

A5 148 x 210 mm.

Source

pub const B4: Self

B4 (JIS) 250 x 354.

Source

pub const B5: Self

B5 (JIS) 182 x 257 mm.

Source

pub const FOLIO: Self

Folio 8 1/2 x 13 in.

Source

pub const QUARTO: Self

Quarto 215 x 275 mm.

Source

pub const P10X14: Self

10x14 in.

Source

pub const P11X17: Self

11x17 in.

Source

pub const NOTE: Self

Note 8 1/2 x 11 in.

Source

pub const ENV_9: Self

Envelope #9 3 7/8 x 8 7/8.

Source

pub const ENV_10: Self

Envelope #10 4 1/8 x 9 1/2.

Source

pub const ENV_11: Self

Envelope #11 4 1/2 x 10 3/8.

Source

pub const ENV_12: Self

Envelope #12 4 \276 x 11.

Source

pub const ENV_14: Self

Envelope #14 5 x 11 1/2.

Source

pub const CSHEET: Self

C size sheet.

Source

pub const DSHEET: Self

D size sheet.

Source

pub const ESHEET: Self

E size sheet.

Source

pub const ENV_DL: Self

Envelope DL 110 x 220mm.

Source

pub const ENV_C5: Self

Envelope C5 162 x 229 mm.

Source

pub const ENV_C3: Self

Envelope C3 324 x 458 mm.

Source

pub const ENV_C4: Self

Envelope C4 229 x 324 mm.

Source

pub const ENV_C6: Self

Envelope C6 114 x 162 mm.

Source

pub const ENV_C65: Self

Envelope C65 114 x 229 mm.

Source

pub const ENV_B4: Self

Envelope B4 250 x 353 mm.

Source

pub const ENV_B5: Self

Envelope B5 176 x 250 mm.

Source

pub const ENV_B6: Self

Envelope B6 176 x 125 mm.

Source

pub const ENV_ITALY: Self

Envelope 110 x 230 mm.

Source

pub const ENV_MONARCH: Self

Envelope Monarch 3.875 x 7.5 in.

Source

pub const ENV_PERSONAL: Self

6 3/4 Envelope 3 5/8 x 6 1/2 in.

Source

pub const FANFOLD_US: Self

US Std Fanfold 14 7/8 x 11 in.

Source

pub const FANFOLD_STD_GERMAN: Self

German Std Fanfold 8 1/2 x 12 in.

Source

pub const FANFOLD_LGL_GERMAN: Self

German Legal Fanfold 8 1/2 x 13 in.

Source

pub const ISO_B4: Self

B4 (ISO) 250 x 353 mm.

Source

pub const JAPANESE_POSTCARD: Self

Japanese Postcard 100 x 148 mm.

Source

pub const P9X11: Self

9 x 11 in.

Source

pub const P10X11: Self

10 x 11 in.

Source

pub const P15X11: Self

15 x 11 in.

Source

pub const ENV_INVITE: Self

Envelope Invite 220 x 220 mm.

Source

pub const LETTER_EXTRA: Self

Letter Extra 9 275 x 12 in.

Source

pub const LEGAL_EXTRA: Self

Legal Extra 9 275 x 15 in.

Source

pub const TABLOID_EXTRA: Self

Tabloid Extra 11.69 x 18 in.

Source

pub const A4_EXTRA: Self

A4 Extra 9.27 x 12.69 in.

Source

pub const LETTER_TRANSVERSE: Self

Letter Transverse 8 275 x 11 in.

Source

pub const A4_TRANSVERSE: Self

A4 Transverse 210 x 297 mm.

Source

pub const LETTER_EXTRA_TRANSVERSE: Self

Letter Extra Transverse 9\275 x 12 in.

Source

pub const A_PLUS: Self

SuperA/SuperA/A4 227 x 356 mm.

Source

pub const B_PLUS: Self

SuperB/SuperB/A3 305 x 487 mm.

Source

pub const LETTER_PLUS: Self

Letter Plus 8.5 x 12.69 in.

Source

pub const A4_PLUS: Self

A4 Plus 210 x 330 mm.

Source

pub const A5_TRANSVERSE: Self

A5 Transverse 148 x 210 mm.

Source

pub const B5_TRANSVERSE: Self

B5 (JIS) Transverse 182 x 257 mm.

Source

pub const A3_EXTRA: Self

A3 Extra 322 x 445 mm.

Source

pub const A5_EXTRA: Self

A5 Extra 174 x 235 mm.

Source

pub const B5_EXTRA: Self

B5 (ISO) Extra 201 x 276 mm.

Source

pub const A2: Self

A2 420 x 594 mm.

Source

pub const A3_TRANSVERSE: Self

A3 Transverse 297 x 420 mm.

Source

pub const A3_EXTRA_TRANSVERSE: Self

A3 Extra Transverse 322 x 445 mm.

Source

pub const DBL_JAPANESE_POSTCARD: Self

Japanese Double Postcard 200 x 148 mm.

Source

pub const A6: Self

A6 105 x 148 mm.

Source

pub const JENV_KAKU2: Self

Japanese Envelope Kaku #2.

Source

pub const JENV_KAKU3: Self

Japanese Envelope Kaku #3.

Source

pub const JENV_CHOU3: Self

Japanese Envelope Chou #3.

Source

pub const JENV_CHOU4: Self

Japanese Envelope Chou #4.

Source

pub const LETTER_ROTATED: Self

Letter Rotated 11 x 8 1/2 11 in.

Source

pub const A3_ROTATED: Self

A3 Rotated 420 x 297 mm.

Source

pub const A4_ROTATED: Self

A4 Rotated 297 x 210 mm.

Source

pub const A5_ROTATED: Self

A5 Rotated 210 x 148 mm.

Source

pub const B4_JIS_ROTATED: Self

B4 (JIS) Rotated 364 x 257 mm.

Source

pub const B5_JIS_ROTATED: Self

B5 (JIS) Rotated 257 x 182 mm.

Source

pub const JAPANESE_POSTCARD_ROTATED: Self

Japanese Postcard Rotated 148 x 100 mm.

Source

pub const DBL_JAPANESE_POSTCARD_ROTATED: Self

Double Japanese Postcard Rotated 148 x 200 mm.

Source

pub const A6_ROTATED: Self

A6 Rotated 148 x 105 mm.

Source

pub const JENV_KAKU2_ROTATED: Self

Japanese Envelope Kaku #2 Rotated.

Source

pub const JENV_KAKU3_ROTATED: Self

Japanese Envelope Kaku #3 Rotated.

Source

pub const JENV_CHOU3_ROTATED: Self

Japanese Envelope Chou #3 Rotated.

Source

pub const JENV_CHOU4_ROTATED: Self

Japanese Envelope Chou #4 Rotated.

Source

pub const B6_JIS: Self

B6 (JIS) 128 x 182 mm.

Source

pub const B6_JIS_ROTATED: Self

B6 (JIS) Rotated 182 x 128 mm.

Source

pub const P12X11: Self

12 x 11 in.

Source

pub const JENV_YOU4: Self

Japanese Envelope You #4.

Source

pub const JENV_YOU4_ROTATED: Self

Japanese Envelope You #4 Rotated.

Source

pub const P16K: Self

PRC 16K 146 x 215 mm.

Source

pub const P32K: Self

PRC 32K 97 x 151 mm.

Source

pub const P32KBIG: Self

PRC 32K (Big) 97 x 151 mm.

Source

pub const PENV_1: Self

PRC Envelope #1 102 x 165 mm.

Source

pub const PENV_2: Self

PRC Envelope #2 102 x 176 mm.

Source

pub const PENV_3: Self

PRC Envelope #3 125 x 176 mm.

Source

pub const PENV_4: Self

PRC Envelope #4 110 x 208 mm.

Source

pub const PENV_5: Self

PRC Envelope #5 110 x 220 mm.

Source

pub const PENV_6: Self

PRC Envelope #6 120 x 230 mm.

Source

pub const PENV_7: Self

PRC Envelope #7 160 x 230 mm.

Source

pub const PENV_8: Self

PRC Envelope #8 120 x 309 mm.

Source

pub const PENV_9: Self

PRC Envelope #9 229 x 324 mm.

Source

pub const PENV_10: Self

PRC Envelope #10 324 x 458 mm.

Source

pub const P16K_ROTATED: Self

PRC 16K Rotated.

Source

pub const P32K_ROTATED: Self

PRC 32K Rotated.

Source

pub const P32KBIG_ROTATED: Self

PRC 32K(Big) Rotated.

Source

pub const PENV_1_ROTATED: Self

PRC Envelope #1 Rotated 165 x 102 mm.

Source

pub const PENV_2_ROTATED: Self

PRC Envelope #2 Rotated 176 x 102 mm.

Source

pub const PENV_3_ROTATED: Self

PRC Envelope #3 Rotated 176 x 125 mm.

Source

pub const PENV_4_ROTATED: Self

PRC Envelope #4 Rotated 208 x 110 mm.

Source

pub const PENV_5_ROTATED: Self

PRC Envelope #5 Rotated 220 x 110 mm.

Source

pub const PENV_6_ROTATED: Self

PRC Envelope #6 Rotated 230 x 120 mm.

Source

pub const PENV_7_ROTATED: Self

PRC Envelope #7 Rotated 230 x 160 mm.

Source

pub const PENV_8_ROTATED: Self

PRC Envelope #8 Rotated 309 x 120 mm.

Source

pub const PENV_9_ROTATED: Self

PRC Envelope #9 Rotated 324 x 229 mm.

Source

pub const PENV_10_ROTATED: Self

PRC Envelope #10 Rotated 458 x 324 mm.

Source

pub const USER: Self

Other papers start here.

Trait Implementations§

Source§

impl AsRef<i16> for DMPAPER

Source§

fn as_ref(&self) -> &i16

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Binary for DMPAPER

Source§

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

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

impl Clone for DMPAPER

Source§

fn clone(&self) -> DMPAPER

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DMPAPER

Source§

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

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

impl Default for DMPAPER

Source§

fn default() -> DMPAPER

Returns the “default value” for a type. Read more
Source§

impl Display for DMPAPER

Source§

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

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

impl From<DMPAPER> for i16

Source§

fn from(v: DMPAPER) -> Self

Converts to this type from the input type.
Source§

impl Hash for DMPAPER

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 LowerHex for DMPAPER

Source§

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

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

impl Octal for DMPAPER

Source§

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

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

impl Ord for DMPAPER

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DMPAPER

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for DMPAPER

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl UpperHex for DMPAPER

Source§

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

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

impl Copy for DMPAPER

Source§

impl Eq for DMPAPER

Source§

impl StructuralPartialEq for DMPAPER

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.