pub struct BatteryType(pub BYTE);Expand description
Defines type of battery used in device, if any.
Tuple Fields§
§0: BYTEImplementations§
Source§impl BatteryType
impl BatteryType
Trait Implementations§
Source§impl Clone for BatteryType
impl Clone for BatteryType
Source§fn clone(&self) -> BatteryType
fn clone(&self) -> BatteryType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BatteryType
Source§impl Debug for BatteryType
impl Debug for BatteryType
impl Eq for BatteryType
Source§impl PartialEq for BatteryType
impl PartialEq for BatteryType
Source§fn eq(&self, other: &BatteryType) -> bool
fn eq(&self, other: &BatteryType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatteryType
Auto Trait Implementations§
impl Freeze for BatteryType
impl RefUnwindSafe for BatteryType
impl Send for BatteryType
impl Sync for BatteryType
impl Unpin for BatteryType
impl UnsafeUnpin for BatteryType
impl UnwindSafe for BatteryType
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