pub struct Midi2Assignment {
pub assignment: MidiControllerAssignment,
pub controller: Midi2Controller,
}Expand description
MIDI 2.0 controller assignment.
Maps a MIDI 2.0 Registered/Assignable Controller to a parameter.
Fields§
§assignment: MidiControllerAssignmentBase assignment info (parameter_id, bus, channel).
controller: Midi2ControllerMIDI 2.0 controller identifier.
Implementations§
Source§impl Midi2Assignment
impl Midi2Assignment
Sourcepub const fn new(
parameter_id: u32,
bus_index: i32,
channel: u8,
controller: Midi2Controller,
) -> Self
pub const fn new( parameter_id: u32, bus_index: i32, channel: u8, controller: Midi2Controller, ) -> Self
Create a new MIDI 2.0 controller assignment.
Sourcepub const fn simple(parameter_id: u32, controller: Midi2Controller) -> Self
pub const fn simple(parameter_id: u32, controller: Midi2Controller) -> Self
Create an assignment for the default bus and all channels.
Trait Implementations§
Source§impl Clone for Midi2Assignment
impl Clone for Midi2Assignment
Source§fn clone(&self) -> Midi2Assignment
fn clone(&self) -> Midi2Assignment
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 Midi2Assignment
impl Debug for Midi2Assignment
impl Copy for Midi2Assignment
Auto Trait Implementations§
impl Freeze for Midi2Assignment
impl RefUnwindSafe for Midi2Assignment
impl Send for Midi2Assignment
impl Sync for Midi2Assignment
impl Unpin for Midi2Assignment
impl UnwindSafe for Midi2Assignment
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