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