pub struct CDS(/* private fields */);
Available on crate features
kernel
and user
only.Expand description
ChangeDisplaySettings
flags
(u32
).
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl CDS
impl CDS
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 CDS
impl CDS
pub const DISABLE_UNSAFE_MODES: Self = _
pub const DYNAMICALLY: Self = _
pub const ENABLE_UNSAFE_MODES: Self = _
pub const FULLSCREEN: Self = _
pub const GLOBAL: Self = _
pub const NORESET: Self = _
pub const RESET: Self = _
pub const SET_PRIMARY: Self = _
pub const TEST: Self = _
pub const UPDATEREGISTRY: Self = _
pub const VIDEOPARAMETERS: Self = _
Trait Implementations§
source§impl BitAndAssign for CDS
impl BitAndAssign for CDS
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for CDS
impl BitOrAssign for CDS
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for CDS
impl BitXorAssign for CDS
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl IntUnderlying for CDS
impl IntUnderlying for CDS
source§impl NativeBitflag for CDS
impl NativeBitflag for CDS
source§impl Ord for CDS
impl Ord for CDS
source§impl PartialOrd for CDS
impl PartialOrd for CDS
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for CDS
impl Eq for CDS
impl NativeConst for CDS
impl Send for CDS
impl StructuralPartialEq for CDS
Auto Trait Implementations§
impl Freeze for CDS
impl RefUnwindSafe for CDS
impl Sync for CDS
impl Unpin for CDS
impl UnwindSafe for CDS
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