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§
Source§impl Clone for FrequencyUnit
impl Clone for FrequencyUnit
Source§fn clone(&self) -> FrequencyUnit
fn clone(&self) -> FrequencyUnit
Returns a copy 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 FrequencyUnit
impl Debug for FrequencyUnit
Source§impl Display for FrequencyUnit
impl Display for FrequencyUnit
Source§impl LinearScaledUnit for FrequencyUnit
impl LinearScaledUnit for FrequencyUnit
Source§fn 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.Source§fn is_ref_unit(&self) -> bool
fn is_ref_unit(&self) -> bool
Returns
true
if self
is the reference unit of its unit type.Source§impl Mul<FrequencyUnit> for AmountT
impl Mul<FrequencyUnit> for AmountT
Source§impl Mul<f64> for FrequencyUnit
impl Mul<f64> for FrequencyUnit
Source§impl PartialEq for FrequencyUnit
impl PartialEq for FrequencyUnit
Source§impl Unit for FrequencyUnit
impl Unit for FrequencyUnit
Source§type QuantityType = Frequency
type QuantityType = Frequency
Associated type of quantity
Source§fn 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.Source§fn 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.Source§fn as_qty(&self) -> Self::QuantityType
fn as_qty(&self) -> Self::QuantityType
Returns
1 * self
impl Copy for FrequencyUnit
impl Eq for FrequencyUnit
impl StructuralPartialEq for FrequencyUnit
Auto Trait Implementations§
impl Freeze for FrequencyUnit
impl RefUnwindSafe for FrequencyUnit
impl Send for FrequencyUnit
impl Sync for FrequencyUnit
impl Unpin for FrequencyUnit
impl UnwindSafe for FrequencyUnit
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