pub enum Current {
Ampere,
Milliampere,
Custom(ElectricCharge, Time),
}Variants§
Implementations§
Source§impl Current
impl Current
pub fn convert_to(self, to: Self) -> Self
pub fn to_amperes(&self) -> f64
pub fn to_milliamperes(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Current
impl RefUnwindSafe for Current
impl Send for Current
impl Sync for Current
impl Unpin for Current
impl UnwindSafe for Current
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