Enum quantities::frequency::FrequencyUnit
source · [−]pub enum FrequencyUnit {
Hertz,
Kilohertz,
Megahertz,
Gigahertz,
}Expand description
Unit of quantity Frequency.
Variants
Hertz
Reference unit of quantity Frequency
Kilohertz
1000·Hz
Megahertz
1000000·Hz
Gigahertz
1000000000·Hz
Trait Implementations
sourceimpl Clone for FrequencyUnit
impl Clone for FrequencyUnit
sourcefn clone(&self) -> FrequencyUnit
fn clone(&self) -> FrequencyUnit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FrequencyUnit
impl Debug for FrequencyUnit
sourceimpl Display for FrequencyUnit
impl Display for FrequencyUnit
sourceimpl LinearScaledUnit for FrequencyUnit
impl LinearScaledUnit for FrequencyUnit
sourcefn from_scale(amnt: AmountT) -> Option<Self>
fn from_scale(amnt: AmountT) -> Option<Self>
Returns Some(unit) where unit.scale() == Some(amnt), or None if
there is no such unit. Read more
sourcefn is_ref_unit(&self) -> bool
fn is_ref_unit(&self) -> bool
Returns true if self is the reference unit of its unit type.
sourceimpl Mul<FrequencyUnit> for AmountT
impl Mul<FrequencyUnit> for AmountT
sourceimpl Mul<f64> for FrequencyUnit
impl Mul<f64> for FrequencyUnit
sourceimpl PartialEq<FrequencyUnit> for FrequencyUnit
impl PartialEq<FrequencyUnit> for FrequencyUnit
sourcefn eq(&self, other: &FrequencyUnit) -> bool
fn eq(&self, other: &FrequencyUnit) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Unit for FrequencyUnit
impl Unit for FrequencyUnit
type QuantityType = Frequency
type QuantityType = Frequency
Associated type of quantity
sourcefn si_prefix(&self) -> Option<SIPrefix>
fn si_prefix(&self) -> Option<SIPrefix>
Returns the SI prefix of self, or None is self is not a SI unit.
sourcefn from_symbol(symbol: &str) -> Option<Self>
fn from_symbol(symbol: &str) -> Option<Self>
Returns Some(unit) where unit.symbol() == symbol, or None if
there is no such unit. Read more
sourcefn as_qty(&self) -> Self::QuantityType
fn as_qty(&self) -> Self::QuantityType
Returns 1 * self
impl Copy for FrequencyUnit
impl Eq for FrequencyUnit
impl StructuralEq for FrequencyUnit
impl StructuralPartialEq for FrequencyUnit
Auto Trait Implementations
impl RefUnwindSafe for FrequencyUnit
impl Send for FrequencyUnit
impl Sync for FrequencyUnit
impl Unpin for FrequencyUnit
impl UnwindSafe for FrequencyUnit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more