pub struct Frequency(/* private fields */);Implementations§
Source§impl Frequency
impl Frequency
pub fn value(&self) -> f64
pub fn to_wavelength(&self) -> Wavelength
Trait Implementations§
Source§impl AsRef<Quantity<dyn Dimension<L = Z0, M = Z0, T = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, N = Z0, I = Z0, Kind = dyn Kind>, dyn Units<f64, length = meter, luminous_intensity = candela, mass = kilogram, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere>, f64>> for Frequency
impl AsRef<Quantity<dyn Dimension<L = Z0, M = Z0, T = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, N = Z0, I = Z0, Kind = dyn Kind>, dyn Units<f64, length = meter, luminous_intensity = candela, mass = kilogram, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere>, f64>> for Frequency
Source§fn as_ref(&self) -> &BaseFrequency
fn as_ref(&self) -> &BaseFrequency
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'de> Deserialize<'de> for Frequency
impl<'de> Deserialize<'de> for Frequency
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 From<Quantity<dyn Dimension<L = Z0, M = Z0, T = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, N = Z0, I = Z0, Kind = dyn Kind>, dyn Units<f64, length = meter, luminous_intensity = candela, mass = kilogram, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere>, f64>> for Frequency
impl From<Quantity<dyn Dimension<L = Z0, M = Z0, T = NInt<UInt<UTerm, B1>>, J = Z0, Th = Z0, N = Z0, I = Z0, Kind = dyn Kind>, dyn Units<f64, length = meter, luminous_intensity = candela, mass = kilogram, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere>, f64>> for Frequency
Source§fn from(value: BaseFrequency) -> Self
fn from(value: BaseFrequency) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Frequency
impl PartialOrd for Frequency
impl Copy for Frequency
impl StructuralPartialEq for Frequency
Auto Trait Implementations§
impl Freeze for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnsafeUnpin for Frequency
impl UnwindSafe for Frequency
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