#[repr(C)]
pub struct playdate_control_signal { pub newSignal: Option<unsafe extern "C" fn() -> *mut ControlSignal>, pub freeSignal: Option<unsafe extern "C" fn(signal: *mut ControlSignal)>, pub clearEvents: Option<unsafe extern "C" fn(control: *mut ControlSignal)>, pub addEvent: Option<unsafe extern "C" fn(control: *mut ControlSignal, step: c_int, value: f32, interpolate: c_int)>, pub removeEvent: Option<unsafe extern "C" fn(control: *mut ControlSignal, step: c_int)>, pub getMIDIControllerNumber: Option<unsafe extern "C" fn(control: *mut ControlSignal) -> c_int>, }

Fields

newSignal: Option<unsafe extern "C" fn() -> *mut ControlSignal>freeSignal: Option<unsafe extern "C" fn(signal: *mut ControlSignal)>clearEvents: Option<unsafe extern "C" fn(control: *mut ControlSignal)>addEvent: Option<unsafe extern "C" fn(control: *mut ControlSignal, step: c_int, value: f32, interpolate: c_int)>removeEvent: Option<unsafe extern "C" fn(control: *mut ControlSignal, step: c_int)>getMIDIControllerNumber: Option<unsafe extern "C" fn(control: *mut ControlSignal) -> c_int>

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.