pub struct BatteryDevType(/* private fields */);Expand description
Implementations§
Source§impl BatteryDevType
impl BatteryDevType
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 BatteryDevType
impl BatteryDevType
Sourcepub const Gamepad: BatteryDevType
pub const Gamepad: BatteryDevType
Get the battery information for a gamepad
Sourcepub const Headset: BatteryDevType
pub const Headset: BatteryDevType
Get the battery information for a headset
Trait Implementations§
Source§impl Clone for BatteryDevType
impl Clone for BatteryDevType
Source§fn clone(&self) -> BatteryDevType
fn clone(&self) -> BatteryDevType
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 BatteryDevType
impl Debug for BatteryDevType
Source§impl Default for BatteryDevType
impl Default for BatteryDevType
Source§impl From<BatteryDevType> for u8
impl From<BatteryDevType> for u8
Source§fn from(value: BatteryDevType) -> Self
fn from(value: BatteryDevType) -> Self
Converts to this type from the input type.
Source§impl Hash for BatteryDevType
impl Hash for BatteryDevType
Source§impl Ord for BatteryDevType
impl Ord for BatteryDevType
Source§fn cmp(&self, other: &BatteryDevType) -> Ordering
fn cmp(&self, other: &BatteryDevType) -> 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 BatteryDevType
impl PartialEq for BatteryDevType
Source§impl PartialOrd for BatteryDevType
impl PartialOrd for BatteryDevType
impl Copy for BatteryDevType
impl Eq for BatteryDevType
impl Pod for BatteryDevType
impl StructuralPartialEq for BatteryDevType
Auto Trait Implementations§
impl Freeze for BatteryDevType
impl RefUnwindSafe for BatteryDevType
impl Send for BatteryDevType
impl Sync for BatteryDevType
impl Unpin for BatteryDevType
impl UnwindSafe for BatteryDevType
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.