#[repr(u8)]pub enum Technology {
TechnologyUnknown = 0,
TechnologyLithiumIon = 1,
TechnologyLeadAcid = 2,
TechnologyLithiumPolymer = 3,
TechnologyNickelMetalHydride = 4,
TechnologyNickelCadmium = 5,
TechnologyNickelZinc = 6,
TechnologyLithiumIronPhosphate = 7,
TechnologyRechargeableAlkalineManganese = 8,
}Expand description
Possible battery technologies.
New members might be added to this enum in the next versions, so users are required to properly handle that case.
Enum members are prefixed here in order to not have “redeclaration of enumerator” error in C.
Variants§
TechnologyUnknown = 0
TechnologyLithiumIon = 1
TechnologyLeadAcid = 2
TechnologyLithiumPolymer = 3
TechnologyNickelMetalHydride = 4
TechnologyNickelCadmium = 5
TechnologyNickelZinc = 6
TechnologyLithiumIronPhosphate = 7
TechnologyRechargeableAlkalineManganese = 8
Trait Implementations§
Source§impl From<Technology> for Technology
impl From<Technology> for Technology
Auto Trait Implementations§
impl Freeze for Technology
impl RefUnwindSafe for Technology
impl Send for Technology
impl Sync for Technology
impl Unpin for Technology
impl UnsafeUnpin for Technology
impl UnwindSafe for Technology
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