pub enum Freq {
GigaHertz,
MegaHertz,
KiloHertz,
Hertz,
}
Expand description
An Enum to convert frequencies to their approximate duration, rounded to the closest nanosecond.
Variants§
Trait Implementations§
source§impl Ord for Freq
impl Ord for Freq
source§impl PartialEq for Freq
impl PartialEq for Freq
source§impl PartialOrd for Freq
impl PartialOrd for Freq
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Freq
impl Eq for Freq
impl StructuralEq for Freq
impl StructuralPartialEq for Freq
Auto Trait Implementations§
impl RefUnwindSafe for Freq
impl Send for Freq
impl Sync for Freq
impl Unpin for Freq
impl UnwindSafe for Freq
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