pub struct DM(/* private fields */);
Available on crate features
kernel
and user
only.Expand description
DEVMODE
dmFields
(u32
).
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl DM
impl DM
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
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 DM
impl DM
pub const ORIENTATION: Self = _
pub const PAPERSIZE: Self = _
pub const PAPERLENGTH: Self = _
pub const PAPERWIDTH: Self = _
pub const SCALE: Self = _
pub const POSITION: Self = _
pub const NUP: Self = _
pub const DISPLAYORIENTATION: Self = _
pub const COPIES: Self = _
pub const DEFAULTSOURCE: Self = _
pub const PRINTQUALITY: Self = _
pub const COLOR: Self = _
pub const DUPLEX: Self = _
pub const YRESOLUTION: Self = _
pub const TTOPTION: Self = _
pub const COLLATE: Self = _
pub const FORMNAME: Self = _
pub const LOGPIXELS: Self = _
pub const BITSPERPEL: Self = _
pub const PELSWIDTH: Self = _
pub const PELSHEIGHT: Self = _
pub const DISPLAYFLAGS: Self = _
pub const DISPLAYFREQUENCY: Self = _
pub const ICMMETHOD: Self = _
pub const ICMINTENT: Self = _
pub const MEDIATYPE: Self = _
pub const DITHERTYPE: Self = _
pub const PANNINGWIDTH: Self = _
pub const PANNINGHEIGHT: Self = _
pub const DISPLAYFIXEDOUTPUT: Self = _
Trait Implementations§
source§impl BitAndAssign for DM
impl BitAndAssign for DM
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for DM
impl BitOrAssign for DM
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for DM
impl BitXorAssign for DM
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl IntUnderlying for DM
impl IntUnderlying for DM
source§impl NativeBitflag for DM
impl NativeBitflag for DM
impl Copy for DM
impl Eq for DM
impl NativeConst for DM
impl Send for DM
impl StructuralPartialEq for DM
Auto Trait Implementations§
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