pub struct Tone {
pub frequency_hz: u32,
pub duration: Duration,
pub waveform: Waveform,
}Expand description
Description of a tone to reproduce.
Fields§
§frequency_hz: u32Frequency of the tone in hertz.
duration: DurationDuration of the tone.
waveform: WaveformWaveform of the tone.
Implementations§
Trait Implementations§
impl Copy for Tone
impl Eq for Tone
impl StructuralPartialEq for Tone
Auto Trait Implementations§
impl Freeze for Tone
impl RefUnwindSafe for Tone
impl Send for Tone
impl Sync for Tone
impl Unpin for Tone
impl UnsafeUnpin for Tone
impl UnwindSafe for Tone
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