pub struct Wavelength(/* private fields */);Implementations§
Source§impl Wavelength
impl Wavelength
pub fn millimeters(value: f64) -> Self
pub fn centimeters(value: f64) -> Self
pub fn meters(value: f64) -> Self
pub fn kilometers(value: f64) -> Self
pub const fn value(&self) -> f64
pub fn to_frequency(&self) -> Frequency
Trait Implementations§
Source§impl AsRef<Quantity<dyn Dimension<N = Z0, Th = Z0, J = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0>, dyn Units<f64, amount_of_substance = mole, time = second, length = meter, electric_current = ampere, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>> for Wavelength
impl AsRef<Quantity<dyn Dimension<N = Z0, Th = Z0, J = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0>, dyn Units<f64, amount_of_substance = mole, time = second, length = meter, electric_current = ampere, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>> for Wavelength
Source§fn as_ref(&self) -> &BaseLength
fn as_ref(&self) -> &BaseLength
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for Wavelength
impl Clone for Wavelength
Source§fn clone(&self) -> Wavelength
fn clone(&self) -> Wavelength
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 Wavelength
impl Debug for Wavelength
Source§impl Default for Wavelength
impl Default for Wavelength
Source§fn default() -> Wavelength
fn default() -> Wavelength
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Wavelength
impl<'de> Deserialize<'de> for Wavelength
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 Display for Wavelength
impl Display for Wavelength
Source§impl From<Quantity<dyn Dimension<N = Z0, Th = Z0, J = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0>, dyn Units<f64, amount_of_substance = mole, time = second, length = meter, electric_current = ampere, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>> for Wavelength
impl From<Quantity<dyn Dimension<N = Z0, Th = Z0, J = Z0, M = Z0, L = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0>, dyn Units<f64, amount_of_substance = mole, time = second, length = meter, electric_current = ampere, mass = kilogram, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>> for Wavelength
Source§fn from(value: BaseLength) -> Self
fn from(value: BaseLength) -> Self
Converts to this type from the input type.
Source§impl From<Wavelength> for Length
impl From<Wavelength> for Length
Source§fn from(value: Wavelength) -> Self
fn from(value: Wavelength) -> Self
Converts to this type from the input type.
Source§impl From<Wavelength> for f64
impl From<Wavelength> for f64
Source§fn from(value: Wavelength) -> Self
fn from(value: Wavelength) -> Self
Converts to this type from the input type.
Source§impl From<f64> for Wavelength
impl From<f64> for Wavelength
Source§impl FromStr for Wavelength
impl FromStr for Wavelength
Source§impl PartialEq for Wavelength
impl PartialEq for Wavelength
Source§impl PartialOrd for Wavelength
impl PartialOrd for Wavelength
Source§impl Serialize for Wavelength
impl Serialize for Wavelength
impl Copy for Wavelength
impl StructuralPartialEq for Wavelength
Auto Trait Implementations§
impl Freeze for Wavelength
impl RefUnwindSafe for Wavelength
impl Send for Wavelength
impl Sync for Wavelength
impl Unpin for Wavelength
impl UnsafeUnpin for Wavelength
impl UnwindSafe for Wavelength
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