pub enum Waveform {
Sine,
Triangle,
Square,
Sawtooth,
}Expand description
Periodic waveform evaluated in turns.
Variants§
Sine
Smooth sine starting at zero.
Triangle
Linear ramps starting at zero and rising to one.
Square
Positive during the first half of each cycle, negative during the second.
Sawtooth
Linear ramp from minus one to one with a discontinuity each cycle.
Trait Implementations§
impl Copy for Waveform
impl Eq for Waveform
impl StructuralPartialEq for Waveform
Auto Trait Implementations§
impl Forget for Waveform
impl Freeze for Waveform
impl Move for Waveform
impl RefUnwindSafe for Waveform
impl Send for Waveform
impl Sync for Waveform
impl Unpin for Waveform
impl UnsafeUnpin for Waveform
impl UnwindSafe for Waveform
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