pub struct BatteryLevel(/* private fields */);Expand description
[microsoft.com] BATTERY_LEVEL_*
Implementations§
Source§impl BatteryLevel
impl BatteryLevel
Sourcepub const fn from_unchecked(d3d: u8) -> Self
pub const fn from_unchecked(d3d: u8) -> Self
Convert from an underlying winapi type.
This is probably safe… probably…
Sourcepub const fn into_inner(self) -> u8
pub const fn into_inner(self) -> u8
Convert back into an underlying winapi type.
Source§impl BatteryLevel
impl BatteryLevel
pub const Empty: BatteryLevel
pub const Low: BatteryLevel
pub const Medium: BatteryLevel
pub const Full: BatteryLevel
Trait Implementations§
Source§impl Clone for BatteryLevel
impl Clone for BatteryLevel
Source§fn clone(&self) -> BatteryLevel
fn clone(&self) -> BatteryLevel
Returns a duplicate 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 BatteryLevel
impl Debug for BatteryLevel
Source§impl Default for BatteryLevel
impl Default for BatteryLevel
Source§impl From<BatteryLevel> for u8
impl From<BatteryLevel> for u8
Source§fn from(value: BatteryLevel) -> Self
fn from(value: BatteryLevel) -> Self
Converts to this type from the input type.
Source§impl Hash for BatteryLevel
impl Hash for BatteryLevel
Source§impl Ord for BatteryLevel
impl Ord for BatteryLevel
Source§fn cmp(&self, other: &BatteryLevel) -> Ordering
fn cmp(&self, other: &BatteryLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BatteryLevel
impl PartialEq for BatteryLevel
Source§impl PartialOrd for BatteryLevel
impl PartialOrd for BatteryLevel
impl Copy for BatteryLevel
impl Eq for BatteryLevel
impl Pod for BatteryLevel
impl StructuralPartialEq for BatteryLevel
Auto Trait Implementations§
impl Freeze for BatteryLevel
impl RefUnwindSafe for BatteryLevel
impl Send for BatteryLevel
impl Sync for BatteryLevel
impl Unpin for BatteryLevel
impl UnwindSafe for BatteryLevel
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.