#[repr(transparent)]pub struct SolidAngle {
pub value: f32,
}Fields§
§value: f32Implementations§
Source§impl SolidAngle
impl SolidAngle
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) -> SolidAngle
pub fn as_uom(&self) -> SolidAngle
pub fn from_uom(inner: SolidAngle) -> Self
Trait Implementations§
Source§impl Add for SolidAngle
impl Add for SolidAngle
Source§impl AddAssign for SolidAngle
impl AddAssign for SolidAngle
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 SolidAngle
impl<'de, Context> BorrowDecode<'de, Context> for SolidAngle
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 SolidAngle
impl Clone for SolidAngle
Source§fn clone(&self) -> SolidAngle
fn clone(&self) -> SolidAngle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SolidAngle
Source§impl Debug for SolidAngle
impl Debug for SolidAngle
Source§impl DebugScalarType for SolidAngle
impl DebugScalarType for SolidAngle
Source§impl<Context> Decode<Context> for SolidAngle
impl<Context> Decode<Context> for SolidAngle
Source§impl Default for SolidAngle
impl Default for SolidAngle
Source§impl<'de> Deserialize<'de> for SolidAngle
impl<'de> Deserialize<'de> for SolidAngle
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 SolidAngle
impl Div<f32> for SolidAngle
Source§impl DivAssign<f32> for SolidAngle
impl DivAssign<f32> for SolidAngle
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/= operation. Read moreSource§impl Encode for SolidAngle
impl Encode for SolidAngle
Source§impl From<Quantity<dyn Dimension<J = Z0, L = Z0, N = Z0, I = Z0, T = Z0, Kind = dyn SolidAngleKind, Th = Z0, M = Z0>, dyn Units<f32, electric_current = ampere, length = meter, amount_of_substance = mole, time = second, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f32>> for SolidAngle
impl From<Quantity<dyn Dimension<J = Z0, L = Z0, N = Z0, I = Z0, T = Z0, Kind = dyn SolidAngleKind, Th = Z0, M = Z0>, dyn Units<f32, electric_current = ampere, length = meter, amount_of_substance = mole, time = second, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f32>> for SolidAngle
Source§fn from(value: SolidAngle) -> Self
fn from(value: SolidAngle) -> Self
Converts to this type from the input type.
Source§impl From<SolidAngle> for SolidAngle
impl From<SolidAngle> for SolidAngle
Source§fn from(value: SolidAngle) -> Self
fn from(value: SolidAngle) -> Self
Converts to this type from the input type.
Source§impl Mul<f32> for SolidAngle
impl Mul<f32> for SolidAngle
Source§impl MulAssign<f32> for SolidAngle
impl MulAssign<f32> for SolidAngle
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*= operation. Read moreSource§impl Neg for SolidAngle
impl Neg for SolidAngle
Source§impl PartialEq for SolidAngle
impl PartialEq for SolidAngle
Source§impl PartialOrd for SolidAngle
impl PartialOrd for SolidAngle
Source§impl Serialize for SolidAngle
impl Serialize for SolidAngle
impl StructuralPartialEq for SolidAngle
Source§impl Sub for SolidAngle
impl Sub for SolidAngle
Source§impl SubAssign for SolidAngle
impl SubAssign for SolidAngle
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for SolidAngle
impl RefUnwindSafe for SolidAngle
impl Send for SolidAngle
impl Sync for SolidAngle
impl Unpin for SolidAngle
impl UnsafeUnpin for SolidAngle
impl UnwindSafe for SolidAngle
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