pub struct Frequency(/* private fields */);
Expand description
A frequency we can give to the synthesiser.
Implementations§
Source§impl Frequency
impl Frequency
Sourcepub fn as_centi_hz(&self) -> u32
pub fn as_centi_hz(&self) -> u32
Convert a Frequency into centi-hz (i.e. 1 kHz is 100_000).
Sourcepub fn from_centi_hz(centi_hz: u32) -> Frequency
pub fn from_centi_hz(centi_hz: u32) -> Frequency
Convert a number of centi-Hz into a Frequency.
Trait Implementations§
impl 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