#[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 (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 BatteryFlowDirection
Source§impl Debug for BatteryFlowDirection
impl Debug for BatteryFlowDirection
impl Eq 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§fn eq(&self, other: &BatteryFlowDirection) -> bool
fn eq(&self, other: &BatteryFlowDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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