Struct frequency_unit::Frequency
source · pub struct Frequency { /* private fields */ }Implementations§
source§impl Frequency
impl Frequency
pub const fn new(hz: u64) -> Self
pub fn from_hz<T: NumCast>(val: T) -> Self
pub fn from_mhz<T: NumCast>(val: T) -> Self
pub fn from_ghz<T: NumCast>(val: T) -> Self
pub fn to_hz<T: NumCast>(&self) -> T
pub fn to_mhz<T: NumCast>(&self) -> T
pub fn to_ghz<T: NumCast>(&self) -> T
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 PartialEq for Frequency
impl PartialEq for Frequency
source§impl PartialOrd for Frequency
impl PartialOrd for Frequency
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 moresource§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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)