#[repr(u32)]pub enum OscillatorType {
Sine = 0,
Square = 1,
SawUp = 2,
SawDown = 3,
Triangle = 4,
Noise = 5,
}
Variants§
Trait Implementations§
Source§impl Clone for OscillatorType
impl Clone for OscillatorType
Source§fn clone(&self) -> OscillatorType
fn clone(&self) -> OscillatorType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OscillatorType
impl Debug for OscillatorType
Source§impl From<OscillatorType> for u32
impl From<OscillatorType> for u32
Source§fn from(enum_value: OscillatorType) -> Self
fn from(enum_value: OscillatorType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OscillatorType
impl PartialEq for OscillatorType
Source§impl ReadableParameter for OscillatorType
impl ReadableParameter for OscillatorType
Source§fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
Get the parameter string at
index
.Source§impl ReadableParameterIndex<OscillatorType> for Type
impl ReadableParameterIndex<OscillatorType> for Type
Source§impl TryFrom<u32> for OscillatorType
impl TryFrom<u32> for OscillatorType
Source§type Error = TryFromPrimitiveError<OscillatorType>
type Error = TryFromPrimitiveError<OscillatorType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for OscillatorType
impl TryFromPrimitive for OscillatorType
const NAME: &'static str = "OscillatorType"
type Primitive = u32
type Error = TryFromPrimitiveError<OscillatorType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl WritableParameter for OscillatorType
impl WritableParameter for OscillatorType
Source§impl WritableParameterIndex<OscillatorType> for Type
impl WritableParameterIndex<OscillatorType> for Type
impl Copy for OscillatorType
impl Eq for OscillatorType
impl StructuralPartialEq for OscillatorType
Auto Trait Implementations§
impl Freeze for OscillatorType
impl RefUnwindSafe for OscillatorType
impl Send for OscillatorType
impl Sync for OscillatorType
impl Unpin for OscillatorType
impl UnwindSafe for OscillatorType
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