pub struct Frequency { /* private fields */ }
Implementations§
Source§impl Frequency
impl Frequency
pub const fn new(hz: u64) -> Self
pub fn from_hz<T: AsPrimitive<u64>>(val: T) -> Self
pub fn from_mhz<T: AsPrimitive<f64>>(val: T) -> Self
pub fn from_ghz<T: AsPrimitive<f64>>(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 Ord for Frequency
impl Ord for Frequency
Source§impl PartialOrd for Frequency
impl PartialOrd for Frequency
Source§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
impl Eq for Frequency
impl StructuralPartialEq 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