pub enum ElectricCharge {
Coulomb,
ElementaryCharge,
Custom(Box<Current>, Time),
}Variants§
Implementations§
Source§impl ElectricCharge
impl ElectricCharge
pub fn convert_to(self, to: Self) -> Self
pub fn to_coulombs(&self) -> f64
pub fn to_elementary_charges(&self) -> f64
Trait Implementations§
Source§impl Clone for ElectricCharge
impl Clone for ElectricCharge
Source§fn clone(&self) -> ElectricCharge
fn clone(&self) -> ElectricCharge
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 ElectricCharge
impl RefUnwindSafe for ElectricCharge
impl Send for ElectricCharge
impl Sync for ElectricCharge
impl Unpin for ElectricCharge
impl UnwindSafe for ElectricCharge
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