Struct winsafe::co::SYSTEM_POWER_CONDITION
source · pub struct SYSTEM_POWER_CONDITION(/* private fields */);
Available on crate feature
kernel
only.Expand description
SYSTEM_POWER_CONDITION
enumeration (u32
).
Implementations§
source§impl SYSTEM_POWER_CONDITION
impl SYSTEM_POWER_CONDITION
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 SYSTEM_POWER_CONDITION
impl AsRef<u32> for SYSTEM_POWER_CONDITION
source§impl Binary for SYSTEM_POWER_CONDITION
impl Binary for SYSTEM_POWER_CONDITION
source§impl Clone for SYSTEM_POWER_CONDITION
impl Clone for SYSTEM_POWER_CONDITION
source§fn clone(&self) -> SYSTEM_POWER_CONDITION
fn clone(&self) -> SYSTEM_POWER_CONDITION
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SYSTEM_POWER_CONDITION
impl Debug for SYSTEM_POWER_CONDITION
source§impl Default for SYSTEM_POWER_CONDITION
impl Default for SYSTEM_POWER_CONDITION
source§fn default() -> SYSTEM_POWER_CONDITION
fn default() -> SYSTEM_POWER_CONDITION
Returns the “default value” for a type. Read more
source§impl Display for SYSTEM_POWER_CONDITION
impl Display for SYSTEM_POWER_CONDITION
source§impl From<SYSTEM_POWER_CONDITION> for u32
impl From<SYSTEM_POWER_CONDITION> for u32
source§fn from(v: SYSTEM_POWER_CONDITION) -> Self
fn from(v: SYSTEM_POWER_CONDITION) -> Self
Converts to this type from the input type.
source§impl Hash for SYSTEM_POWER_CONDITION
impl Hash for SYSTEM_POWER_CONDITION
source§impl LowerHex for SYSTEM_POWER_CONDITION
impl LowerHex for SYSTEM_POWER_CONDITION
source§impl Octal for SYSTEM_POWER_CONDITION
impl Octal for SYSTEM_POWER_CONDITION
source§impl Ord for SYSTEM_POWER_CONDITION
impl Ord for SYSTEM_POWER_CONDITION
source§impl PartialEq for SYSTEM_POWER_CONDITION
impl PartialEq for SYSTEM_POWER_CONDITION
source§fn eq(&self, other: &SYSTEM_POWER_CONDITION) -> bool
fn eq(&self, other: &SYSTEM_POWER_CONDITION) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SYSTEM_POWER_CONDITION
impl PartialOrd for SYSTEM_POWER_CONDITION
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 moresource§impl UpperHex for SYSTEM_POWER_CONDITION
impl UpperHex for SYSTEM_POWER_CONDITION
impl Copy for SYSTEM_POWER_CONDITION
impl Eq for SYSTEM_POWER_CONDITION
impl NativeConst for SYSTEM_POWER_CONDITION
impl Send for SYSTEM_POWER_CONDITION
impl StructuralPartialEq for SYSTEM_POWER_CONDITION
Auto Trait Implementations§
impl Freeze for SYSTEM_POWER_CONDITION
impl RefUnwindSafe for SYSTEM_POWER_CONDITION
impl Sync for SYSTEM_POWER_CONDITION
impl Unpin for SYSTEM_POWER_CONDITION
impl UnwindSafe for SYSTEM_POWER_CONDITION
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