pub struct DMDISPLAYFLAGS(/* private fields */);
Available on crate features
kernel
and user
only.Expand description
DEVMODE
dmDisplayFlags
(u32
).
This is a bitflag constant.
Implementations§
Source§impl DMDISPLAYFLAGS
impl DMDISPLAYFLAGS
Sourcepub const unsafe fn as_mut(&mut self) -> &mut u32
pub const unsafe fn as_mut(&mut self) -> &mut u32
Returns a mutable reference to the underlying raw value.
§Safety
Be sure the integer being set is meaningful for the actual type.
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.
Trait Implementations§
Source§impl AsRef<u32> for DMDISPLAYFLAGS
impl AsRef<u32> for DMDISPLAYFLAGS
Source§impl Binary for DMDISPLAYFLAGS
impl Binary for DMDISPLAYFLAGS
Source§impl BitAnd for DMDISPLAYFLAGS
impl BitAnd for DMDISPLAYFLAGS
Source§impl BitAndAssign for DMDISPLAYFLAGS
impl BitAndAssign for DMDISPLAYFLAGS
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for DMDISPLAYFLAGS
impl BitOr for DMDISPLAYFLAGS
Source§impl BitOrAssign for DMDISPLAYFLAGS
impl BitOrAssign for DMDISPLAYFLAGS
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for DMDISPLAYFLAGS
impl BitXor for DMDISPLAYFLAGS
Source§impl BitXorAssign for DMDISPLAYFLAGS
impl BitXorAssign for DMDISPLAYFLAGS
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Clone for DMDISPLAYFLAGS
impl Clone for DMDISPLAYFLAGS
Source§fn clone(&self) -> DMDISPLAYFLAGS
fn clone(&self) -> DMDISPLAYFLAGS
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DMDISPLAYFLAGS
impl Debug for DMDISPLAYFLAGS
Source§impl Default for DMDISPLAYFLAGS
impl Default for DMDISPLAYFLAGS
Source§fn default() -> DMDISPLAYFLAGS
fn default() -> DMDISPLAYFLAGS
Returns the “default value” for a type. Read more
Source§impl Display for DMDISPLAYFLAGS
impl Display for DMDISPLAYFLAGS
Source§impl From<DMDISPLAYFLAGS> for u32
impl From<DMDISPLAYFLAGS> for u32
Source§fn from(v: DMDISPLAYFLAGS) -> Self
fn from(v: DMDISPLAYFLAGS) -> Self
Converts to this type from the input type.
Source§impl Hash for DMDISPLAYFLAGS
impl Hash for DMDISPLAYFLAGS
Source§impl LowerHex for DMDISPLAYFLAGS
impl LowerHex for DMDISPLAYFLAGS
Source§impl Not for DMDISPLAYFLAGS
impl Not for DMDISPLAYFLAGS
Source§impl Octal for DMDISPLAYFLAGS
impl Octal for DMDISPLAYFLAGS
Source§impl Ord for DMDISPLAYFLAGS
impl Ord for DMDISPLAYFLAGS
Source§impl PartialEq for DMDISPLAYFLAGS
impl PartialEq for DMDISPLAYFLAGS
Source§impl PartialOrd for DMDISPLAYFLAGS
impl PartialOrd for DMDISPLAYFLAGS
Source§impl UpperHex for DMDISPLAYFLAGS
impl UpperHex for DMDISPLAYFLAGS
impl Copy for DMDISPLAYFLAGS
impl Eq for DMDISPLAYFLAGS
impl StructuralPartialEq for DMDISPLAYFLAGS
Auto Trait Implementations§
impl Freeze for DMDISPLAYFLAGS
impl RefUnwindSafe for DMDISPLAYFLAGS
impl Send for DMDISPLAYFLAGS
impl Sync for DMDISPLAYFLAGS
impl Unpin for DMDISPLAYFLAGS
impl UnwindSafe for DMDISPLAYFLAGS
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