pub struct Frequency(/* private fields */);Expand description
Implementations§
Source§impl Frequency
impl Frequency
Sourcepub fn in_unit(self, unit: FrequencyUnit) -> f64
pub fn in_unit(self, unit: FrequencyUnit) -> f64
Get value in the specified FrequencyUnit.
Sourcepub fn display_as(self, unit: FrequencyUnit) -> DisplayWithUnit
pub fn display_as(self, unit: FrequencyUnit) -> DisplayWithUnit
Return a display wrapper that formats this frequency in the given unit.
Sourcepub fn wavelength(self) -> Length
pub fn wavelength(self) -> Length
Compute the wavelength in vacuum (c/f) as a Length.
Trait Implementations§
Source§impl AddAssign for Frequency
impl AddAssign for Frequency
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl DivAssign<f64> for Frequency
impl DivAssign<f64> for Frequency
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl MulAssign<f64> for Frequency
impl MulAssign<f64> for Frequency
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl PartialOrd for Frequency
impl PartialOrd for Frequency
Source§impl SubAssign for Frequency
impl SubAssign for Frequency
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl 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