#[repr(C)]
pub struct playdate_sound_envelope { pub newEnvelope: Option<unsafe extern "C" fn(attack: f32, decay: f32, sustain: f32, release: f32) -> *mut PDSynthEnvelope>, pub freeEnvelope: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope)>, pub setAttack: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, attack: f32)>, pub setDecay: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, decay: f32)>, pub setSustain: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, sustain: f32)>, pub setRelease: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, release: f32)>, pub setLegato: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, flag: c_int)>, pub setRetrigger: Option<unsafe extern "C" fn(lfo: *mut PDSynthEnvelope, flag: c_int)>, pub getValue: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope) -> f32>, }

Fields

newEnvelope: Option<unsafe extern "C" fn(attack: f32, decay: f32, sustain: f32, release: f32) -> *mut PDSynthEnvelope>freeEnvelope: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope)>setAttack: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, attack: f32)>setDecay: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, decay: f32)>setSustain: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, sustain: f32)>setRelease: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, release: f32)>setLegato: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope, flag: c_int)>setRetrigger: Option<unsafe extern "C" fn(lfo: *mut PDSynthEnvelope, flag: c_int)>getValue: Option<unsafe extern "C" fn(env: *mut PDSynthEnvelope) -> f32>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.