pub enum ElectricCurrentUnit {
Show 26 variants
yottaampere,
zettaampere,
exaampere,
petaampere,
teraampere,
gigaampere,
megaampere,
kiloampere,
hectoampere,
decaampere,
ampere,
deciampere,
centiampere,
milliampere,
microampere,
nanoampere,
picoampere,
femtoampere,
attoampere,
zeptoampere,
yoctoampere,
elementary_charge_per_second,
atomic_unit_of_charge_per_second,
abampere,
gilbert,
statampere,
}Expand description
Electric current (base UnitDefinition ampere, A).
Variants§
yottaampere
zettaampere
exaampere
petaampere
teraampere
gigaampere
megaampere
kiloampere
hectoampere
decaampere
ampere
deciampere
centiampere
milliampere
microampere
nanoampere
picoampere
femtoampere
attoampere
zeptoampere
yoctoampere
elementary_charge_per_second
atomic_unit_of_charge_per_second
abampere
gilbert
statampere
Implementations§
Source§impl ElectricCurrentUnit
impl ElectricCurrentUnit
pub fn get_yottaampere() -> UnitDefinition
pub fn get_zettaampere() -> UnitDefinition
pub fn get_exaampere() -> UnitDefinition
pub fn get_petaampere() -> UnitDefinition
pub fn get_teraampere() -> UnitDefinition
pub fn get_gigaampere() -> UnitDefinition
pub fn get_megaampere() -> UnitDefinition
pub fn get_kiloampere() -> UnitDefinition
pub fn get_hectoampere() -> UnitDefinition
pub fn get_decaampere() -> UnitDefinition
pub fn get_ampere() -> UnitDefinition
pub fn get_deciampere() -> UnitDefinition
pub fn get_centiampere() -> UnitDefinition
pub fn get_milliampere() -> UnitDefinition
pub fn get_microampere() -> UnitDefinition
pub fn get_nanoampere() -> UnitDefinition
pub fn get_picoampere() -> UnitDefinition
pub fn get_femtoampere() -> UnitDefinition
pub fn get_attoampere() -> UnitDefinition
pub fn get_zeptoampere() -> UnitDefinition
pub fn get_yoctoampere() -> UnitDefinition
pub fn get_elementary_charge_per_second() -> UnitDefinition
pub fn get_atomic_unit_of_charge_per_second() -> UnitDefinition
pub fn get_abampere() -> UnitDefinition
pub fn get_gilbert() -> UnitDefinition
pub fn get_statampere() -> UnitDefinition
Sourcepub const fn multiplier(&self) -> f64
pub const fn multiplier(&self) -> f64
Multiplier of unit to its base quantity.
Sourcepub fn abbreviation(&self) -> &'static str
pub fn abbreviation(&self) -> &'static str
Abbreviation of unit.
Trait Implementations§
Source§impl Clone for ElectricCurrentUnit
impl Clone for ElectricCurrentUnit
Source§fn clone(&self) -> ElectricCurrentUnit
fn clone(&self) -> ElectricCurrentUnit
Returns a duplicate 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 moreSource§impl Debug for ElectricCurrentUnit
impl Debug for ElectricCurrentUnit
Source§impl Default for ElectricCurrentUnit
impl Default for ElectricCurrentUnit
Source§impl Display for ElectricCurrentUnit
impl Display for ElectricCurrentUnit
Source§impl FixedQuantity<ElectricCurrentUnit> for ElectricCurrent
impl FixedQuantity<ElectricCurrentUnit> for ElectricCurrent
Source§fn unit(&self) -> ElectricCurrentUnit
fn unit(&self) -> ElectricCurrentUnit
Return unit associated with this quantity
Source§fn convert(&self, unit: ElectricCurrentUnit) -> Self
fn convert(&self, unit: ElectricCurrentUnit) -> Self
Convert from this unit to another (creates a copy). No validation of base unit is made.
Source§fn convert_mut(&mut self, unit: ElectricCurrentUnit)
fn convert_mut(&mut self, unit: ElectricCurrentUnit)
Convert from this unit to another (modifies current quantity). No validation of base unit is made.
Source§fn unit_mut(&mut self) -> &mut ElectricCurrentUnit
fn unit_mut(&mut self) -> &mut ElectricCurrentUnit
Return mutable unit associated with this quantity
Source§fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
Try to convert from this unit to another (creates a copy)
Source§impl<const N: usize> FixedSliceQuantity<ElectricCurrentUnit, f64> for ElectricCurrentArray<N>
impl<const N: usize> FixedSliceQuantity<ElectricCurrentUnit, f64> for ElectricCurrentArray<N>
Source§fn unit(&self) -> ElectricCurrentUnit
fn unit(&self) -> ElectricCurrentUnit
Return unit associated with this quantity
Source§fn values_mut(&mut self) -> &mut [f64]
fn values_mut(&mut self) -> &mut [f64]
Return mutable values in quantity
Source§fn convert(&self, unit: ElectricCurrentUnit) -> Self
fn convert(&self, unit: ElectricCurrentUnit) -> Self
Convert a unit of one
UnitType to another of the same type. No validation of base unit is made.Source§fn convert_mut(&mut self, unit: ElectricCurrentUnit)
fn convert_mut(&mut self, unit: ElectricCurrentUnit)
Mutate current quantity, convering a unit of one
UnitType to another of the same type. No validation of base unit is made.Source§fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
Attempt to convert the unit given in
unit to a UnitType. Base unit validation is made here.Source§impl FixedSliceQuantity<ElectricCurrentUnit, f64> for ElectricCurrentVec
impl FixedSliceQuantity<ElectricCurrentUnit, f64> for ElectricCurrentVec
Source§fn unit(&self) -> ElectricCurrentUnit
fn unit(&self) -> ElectricCurrentUnit
Return unit associated with this quantity
Source§fn values_mut(&mut self) -> &mut [f64]
fn values_mut(&mut self) -> &mut [f64]
Return mutable values in quantity
Source§fn convert(&self, unit: ElectricCurrentUnit) -> Self
fn convert(&self, unit: ElectricCurrentUnit) -> Self
Convert a unit of one
UnitType to another of the same type. No validation of base unit is made.Source§fn convert_mut(&mut self, unit: ElectricCurrentUnit)
fn convert_mut(&mut self, unit: ElectricCurrentUnit)
Mutate current quantity, convering a unit of one
UnitType to another of the same type. No validation of base unit is made.Source§fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>where
Self: Sized,
Attempt to convert the unit given in
unit to a UnitType. Base unit validation is made here.Source§impl From<ElectricCurrentUnit> for UnitDefinition
impl From<ElectricCurrentUnit> for UnitDefinition
Source§fn from(value: ElectricCurrentUnit) -> Self
fn from(value: ElectricCurrentUnit) -> Self
Converts to this type from the input type.
Source§impl From<ElectricCurrentUnit> for Units
impl From<ElectricCurrentUnit> for Units
Source§fn from(value: ElectricCurrentUnit) -> Self
fn from(value: ElectricCurrentUnit) -> Self
Converts to this type from the input type.
Source§impl Hash for ElectricCurrentUnit
impl Hash for ElectricCurrentUnit
Source§impl PartialEq for ElectricCurrentUnit
impl PartialEq for ElectricCurrentUnit
Source§impl TryFrom<&str> for ElectricCurrentUnit
impl TryFrom<&str> for ElectricCurrentUnit
Source§impl TryFrom<UnitDefinition> for ElectricCurrentUnit
impl TryFrom<UnitDefinition> for ElectricCurrentUnit
Source§type Error = RuntimeUnitError
type Error = RuntimeUnitError
The type returned in the event of a conversion error.
Source§impl TryFrom<Units> for ElectricCurrentUnit
impl TryFrom<Units> for ElectricCurrentUnit
Source§impl Unit for ElectricCurrentUnit
impl Unit for ElectricCurrentUnit
Source§fn definition(&self) -> UnitDefinition
fn definition(&self) -> UnitDefinition
Return unit definition for this Unit Type
Source§fn try_convert(&self, unit: UnitDefinition) -> Result<f64, RuntimeUnitError>
fn try_convert(&self, unit: UnitDefinition) -> Result<f64, RuntimeUnitError>
Try to compute conversion factor from this unit to another.
Source§fn convert_unchecked(&self, unit: Self) -> f64
fn convert_unchecked(&self, unit: Self) -> f64
Compute conversion factor from this unit to another (no check of unit compatibility is made).
impl Copy for ElectricCurrentUnit
impl Eq for ElectricCurrentUnit
impl StructuralPartialEq for ElectricCurrentUnit
Auto Trait Implementations§
impl Freeze for ElectricCurrentUnit
impl RefUnwindSafe for ElectricCurrentUnit
impl Send for ElectricCurrentUnit
impl Sync for ElectricCurrentUnit
impl Unpin for ElectricCurrentUnit
impl UnwindSafe for ElectricCurrentUnit
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