pub enum Frequency {
Hertz(Hz),
Kilohertz(Khz),
}Expand description
Variants§
Implementations§
Source§impl Frequency
impl Frequency
Sourcepub const fn is_hertz(&self) -> bool
pub const fn is_hertz(&self) -> bool
Returns true if the enum is Frequency::Hertz otherwise false
Sourcepub const fn is_kilohertz(&self) -> bool
pub const fn is_kilohertz(&self) -> bool
Returns true if the enum is Frequency::Kilohertz otherwise false
Trait Implementations§
Source§impl From<Frequency> for FrequencyPercentage
impl From<Frequency> for FrequencyPercentage
Source§impl HertzStorage for Frequency
impl HertzStorage for Frequency
Source§impl KilohertzStorage for Frequency
impl KilohertzStorage 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 UnsafeUnpin 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