pub enum Frequency {
Hertz,
Kilohertz,
Megahertz,
Gigahertz,
Custom(Time),
}Variants§
Implementations§
Source§impl Frequency
impl Frequency
pub fn convert_to(self, to: Self) -> Self
pub fn to_hertz(&self) -> f64
pub fn to_kilohertz(&self) -> f64
pub fn to_megahertz(&self) -> f64
pub fn to_gigahertz(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin 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