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