pub struct SpecificArea(/* private fields */);Implementations§
Source§impl SpecificArea
impl SpecificArea
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) -> SpecificArea
pub fn as_uom(&self) -> &SpecificArea
pub fn from_uom(inner: SpecificArea) -> Self
Methods from Deref<Target = SpecificArea>§
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 SpecificArea
impl Add for SpecificArea
Source§impl AddAssign for SpecificArea
impl AddAssign for SpecificArea
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 SpecificArea
impl<'de, Context> BorrowDecode<'de, Context> for SpecificArea
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 SpecificArea
impl Clone for SpecificArea
Source§fn clone(&self) -> SpecificArea
fn clone(&self) -> SpecificArea
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 SpecificArea
impl Debug for SpecificArea
Source§impl<Context> Decode<Context> for SpecificArea
impl<Context> Decode<Context> for SpecificArea
Source§impl Default for SpecificArea
impl Default for SpecificArea
Source§impl Deref for SpecificArea
impl Deref for SpecificArea
Source§type Target = Quantity<dyn Dimension<T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, 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 = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, 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 SpecificArea
impl<'de> Deserialize<'de> for SpecificArea
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 SpecificArea
impl Div<f64> for SpecificArea
Source§impl DivAssign<f64> for SpecificArea
impl DivAssign<f64> for SpecificArea
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl Encode for SpecificArea
impl Encode for SpecificArea
Source§impl From<Quantity<dyn Dimension<T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, 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 SpecificArea
impl From<Quantity<dyn Dimension<T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, 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 SpecificArea
Source§fn from(value: SpecificArea) -> Self
fn from(value: SpecificArea) -> Self
Converts to this type from the input type.
Source§impl From<SpecificArea> for SpecificArea
impl From<SpecificArea> for SpecificArea
Source§fn from(value: SpecificArea) -> Self
fn from(value: SpecificArea) -> Self
Converts to this type from the input type.
Source§impl Mul<f64> for SpecificArea
impl Mul<f64> for SpecificArea
Source§impl MulAssign<f64> for SpecificArea
impl MulAssign<f64> for SpecificArea
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl Neg for SpecificArea
impl Neg for SpecificArea
Source§impl PartialEq for SpecificArea
impl PartialEq for SpecificArea
Source§impl PartialOrd for SpecificArea
impl PartialOrd for SpecificArea
Source§impl Serialize for SpecificArea
impl Serialize for SpecificArea
Source§impl Sub for SpecificArea
impl Sub for SpecificArea
Source§impl SubAssign for SpecificArea
impl SubAssign for SpecificArea
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for SpecificArea
impl StructuralPartialEq for SpecificArea
Auto Trait Implementations§
impl Freeze for SpecificArea
impl RefUnwindSafe for SpecificArea
impl Send for SpecificArea
impl Sync for SpecificArea
impl Unpin for SpecificArea
impl UnwindSafe for SpecificArea
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