#[repr(u8)]pub enum BatteryFlowDirection {
Discharging = 0,
Charging = 1,
}
Variants§
Trait Implementations§
Source§impl Clone for BatteryFlowDirection
impl Clone for BatteryFlowDirection
Source§fn clone(&self) -> BatteryFlowDirection
fn clone(&self) -> BatteryFlowDirection
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 BatteryFlowDirection
impl Debug for BatteryFlowDirection
Source§impl From<BatteryFlowDirection> for u8
impl From<BatteryFlowDirection> for u8
Source§fn from(val: BatteryFlowDirection) -> Self
fn from(val: BatteryFlowDirection) -> Self
Converts to this type from the input type.
Source§impl Hash for BatteryFlowDirection
impl Hash for BatteryFlowDirection
Source§impl PartialEq for BatteryFlowDirection
impl PartialEq for BatteryFlowDirection
Source§impl TryFrom<u8> for BatteryFlowDirection
impl TryFrom<u8> for BatteryFlowDirection
impl Copy for BatteryFlowDirection
impl Eq for BatteryFlowDirection
impl StructuralPartialEq for BatteryFlowDirection
Auto Trait Implementations§
impl Freeze for BatteryFlowDirection
impl RefUnwindSafe for BatteryFlowDirection
impl Send for BatteryFlowDirection
impl Sync for BatteryFlowDirection
impl Unpin for BatteryFlowDirection
impl UnwindSafe for BatteryFlowDirection
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