pub enum WaveformType {
Sine,
Square,
Triangle,
Sawtooth,
Noise,
}Variants§
Implementations§
Source§impl WaveformType
impl WaveformType
pub fn generate_sample(&self, phase: f32) -> f32
Trait Implementations§
Source§impl Clone for WaveformType
impl Clone for WaveformType
Source§fn clone(&self) -> WaveformType
fn clone(&self) -> WaveformType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaveformType
Source§impl Debug for WaveformType
impl Debug for WaveformType
Source§impl PartialEq for WaveformType
impl PartialEq for WaveformType
Source§fn eq(&self, other: &WaveformType) -> bool
fn eq(&self, other: &WaveformType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WaveformType
Auto Trait Implementations§
impl Freeze for WaveformType
impl RefUnwindSafe for WaveformType
impl Send for WaveformType
impl Sync for WaveformType
impl Unpin for WaveformType
impl UnsafeUnpin for WaveformType
impl UnwindSafe for WaveformType
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