pub struct ElectricPotential(/* private fields */);Implementations§
Source§impl ElectricPotential
impl ElectricPotential
pub fn new<U>(value: f64) -> Selfwhere
U: Conversion<f64>,
pub fn get<U>(&self) -> f64where
U: Conversion<f64>,
pub fn raw(&self) -> f64
pub fn into_uom(self) -> ElectricPotential
pub fn as_uom(&self) -> &ElectricPotential
pub fn from_uom(inner: ElectricPotential) -> Self
Methods from Deref<Target = ElectricPotential>§
pub const HALF_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
pub const FULL_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
pub const HALF_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
pub const FULL_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
pub const SPHERE: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn SolidAngleKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
pub const SPHERE: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn SolidAngleKind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
Trait Implementations§
Source§impl Add for ElectricPotential
impl Add for ElectricPotential
Source§impl AddAssign for ElectricPotential
impl AddAssign for ElectricPotential
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<'de, Context> BorrowDecode<'de, Context> for ElectricPotential
impl<'de, Context> BorrowDecode<'de, Context> for ElectricPotential
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ElectricPotential
impl Clone for ElectricPotential
Source§fn clone(&self) -> ElectricPotential
fn clone(&self) -> ElectricPotential
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 ElectricPotential
impl Debug for ElectricPotential
Source§impl<Context> Decode<Context> for ElectricPotential
impl<Context> Decode<Context> for ElectricPotential
Source§impl Default for ElectricPotential
impl Default for ElectricPotential
Source§impl Deref for ElectricPotential
impl Deref for ElectricPotential
Source§type Target = Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, Kind = dyn Kind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
type Target = Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, Kind = dyn Kind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
The resulting type after dereferencing.
Source§impl<'de> Deserialize<'de> for ElectricPotential
impl<'de> Deserialize<'de> for ElectricPotential
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Div<f64> for ElectricPotential
impl Div<f64> for ElectricPotential
Source§impl DivAssign<f64> for ElectricPotential
impl DivAssign<f64> for ElectricPotential
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl Encode for ElectricPotential
impl Encode for ElectricPotential
Source§impl From<ElectricPotential> for ElectricPotential
impl From<ElectricPotential> for ElectricPotential
Source§fn from(value: ElectricPotential) -> Self
fn from(value: ElectricPotential) -> Self
Converts to this type from the input type.
Source§impl From<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, Kind = dyn Kind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>> for ElectricPotential
impl From<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, Kind = dyn Kind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>> for ElectricPotential
Source§fn from(value: ElectricPotential) -> Self
fn from(value: ElectricPotential) -> Self
Converts to this type from the input type.
Source§impl Mul<f64> for ElectricPotential
impl Mul<f64> for ElectricPotential
Source§impl MulAssign<f64> for ElectricPotential
impl MulAssign<f64> for ElectricPotential
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl Neg for ElectricPotential
impl Neg for ElectricPotential
Source§impl PartialEq for ElectricPotential
impl PartialEq for ElectricPotential
Source§impl PartialOrd for ElectricPotential
impl PartialOrd for ElectricPotential
Source§impl Serialize for ElectricPotential
impl Serialize for ElectricPotential
Source§impl Sub for ElectricPotential
impl Sub for ElectricPotential
Source§impl SubAssign for ElectricPotential
impl SubAssign for ElectricPotential
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for ElectricPotential
impl StructuralPartialEq for ElectricPotential
Auto Trait Implementations§
impl Freeze for ElectricPotential
impl RefUnwindSafe for ElectricPotential
impl Send for ElectricPotential
impl Sync for ElectricPotential
impl Unpin for ElectricPotential
impl UnwindSafe for ElectricPotential
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