Struct winsafe::co::DMPAPER

source ·
pub struct DMPAPER(/* private fields */);
Available on crate features kernel and user only.
Expand description

DEVMODE dmPaperSize (i16).

Implementations§

source§

impl DMPAPER

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 ETTER_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.
source§

impl Clone for DMPAPER

source§

fn clone(&self) -> DMPAPER

Returns a copy 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 IntUnderlying for DMPAPER

§

type Raw = i16

Available on crate feature kernel only.
The underlying raw integer type.
source§

unsafe fn as_mut(&mut self) -> &mut Self::Raw

Available on crate feature kernel only.
Returns a mutable reference to the underlying raw value. Read more
source§

impl LowerHex for DMPAPER

source§

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

Formats the value using the given formatter.
source§

impl Octal for DMPAPER

source§

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

Formats the value using the given formatter.
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 + PartialOrd,

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

impl PartialEq for DMPAPER

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method 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

This method 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

This method 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

This method 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.
source§

impl Copy for DMPAPER

source§

impl Eq for DMPAPER

source§

impl NativeConst for DMPAPER

source§

impl Send 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> 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,

§

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§

default 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>,

§

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>,

§

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.