pub enum Frequency {
Khz(u32),
Light,
}
Variants
Khz(u32)
Light
Implementations
sourceimpl Frequency
impl Frequency
sourcepub fn as_mhz(&self) -> Option<f32>
pub fn as_mhz(&self) -> Option<f32>
Convert the inner frequency from KHz to MHz. If the frequency is considered Light, then None will be returned.
sourcepub fn as_ghz(&self) -> Option<f32>
pub fn as_ghz(&self) -> Option<f32>
Convert the inner frequency from KHz to GHz. If the frequency is considered Light, then None will be returned.
pub fn is_light(&self) -> bool
Trait Implementations
impl Copy for Frequency
impl StructuralPartialEq for Frequency
Auto Trait Implementations
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnwindSafe for Frequency
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more