pub struct Battery(pub u16);
Tuple Fields
0: u16
Implementations
sourceimpl Battery
impl Battery
pub fn to_voltage(&self) -> f32
Trait Implementations
impl Copy for Battery
Auto Trait Implementations
impl RefUnwindSafe for Battery
impl Send for Battery
impl Sync for Battery
impl Unpin for Battery
impl UnwindSafe for Battery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more