pub struct BatteryLife {
pub remaining_capacity: f32,
pub remaining_time: Duration,
}
Fields§
§remaining_capacity: f32
§remaining_time: Duration
Trait Implementations§
Source§impl Clone for BatteryLife
impl Clone for BatteryLife
Source§fn clone(&self) -> BatteryLife
fn clone(&self) -> BatteryLife
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for BatteryLife
impl RefUnwindSafe for BatteryLife
impl Send for BatteryLife
impl Sync for BatteryLife
impl Unpin for BatteryLife
impl UnwindSafe for BatteryLife
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