pub enum CapacityModeSignedValue {
MilliAmpSigned(i16),
CentiWattSigned(i16),
}Expand description
Depending on the value of the CapacityMode bit, the Smart Battery will use milliamps or centiwatts. Signed to represent negative currents and capacities.
Variants§
MilliAmpSigned(i16)
Signed Milliamp or MilliampHour representation, used when CapacityMode bit = 0.
CentiWattSigned(i16)
Signed Milliamp or MilliampHour representation, used when CapacityMode bit = 1.
Trait Implementations§
Source§impl Clone for CapacityModeSignedValue
impl Clone for CapacityModeSignedValue
Source§fn clone(&self) -> CapacityModeSignedValue
fn clone(&self) -> CapacityModeSignedValue
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 CapacityModeSignedValue
Source§impl Debug for CapacityModeSignedValue
impl Debug for CapacityModeSignedValue
impl Eq for CapacityModeSignedValue
Source§impl Hash for CapacityModeSignedValue
impl Hash for CapacityModeSignedValue
Source§impl Ord for CapacityModeSignedValue
impl Ord for CapacityModeSignedValue
Source§fn cmp(&self, other: &CapacityModeSignedValue) -> Ordering
fn cmp(&self, other: &CapacityModeSignedValue) -> Ordering
1.21.0 (const: unstable) · 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 CapacityModeSignedValue
impl PartialEq for CapacityModeSignedValue
Source§fn eq(&self, other: &CapacityModeSignedValue) -> bool
fn eq(&self, other: &CapacityModeSignedValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CapacityModeSignedValue
impl PartialOrd for CapacityModeSignedValue
impl StructuralPartialEq for CapacityModeSignedValue
Auto Trait Implementations§
impl Freeze for CapacityModeSignedValue
impl RefUnwindSafe for CapacityModeSignedValue
impl Send for CapacityModeSignedValue
impl Sync for CapacityModeSignedValue
impl Unpin for CapacityModeSignedValue
impl UnsafeUnpin for CapacityModeSignedValue
impl UnwindSafe for CapacityModeSignedValue
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