pub struct KitQuery { /* private fields */ }
Expand description
A query to retrieve a Kit
object from rytm.
Implementations§
source§impl KitQuery
impl KitQuery
sourcepub fn new(kit_index: usize) -> Result<Self, RytmError>
pub fn new(kit_index: usize) -> Result<Self, RytmError>
Creates a new kit query.
Accepts a kit index in the range of 0..=127
.
sourcepub fn new_with_device_id(
kit_index: usize,
device_id: u8
) -> Result<Self, RytmError>
pub fn new_with_device_id( kit_index: usize, device_id: u8 ) -> Result<Self, RytmError>
Creates a new kit query.
Accepts a kit index in the range of 0..=127
.
Accepts a device id in the range of 0..=255
.
sourcepub const fn new_targeting_work_buffer() -> Self
pub const fn new_targeting_work_buffer() -> Self
Creates a new kit query for the kit in the work buffer.
sourcepub const fn new_targeting_work_buffer_with_device_id(device_id: u8) -> Self
pub const fn new_targeting_work_buffer_with_device_id(device_id: u8) -> Self
Creates a new kit query for the kit in the work buffer.
Accepts a device id in the range of 0..=255
.
Trait Implementations§
source§impl ObjectQuery for KitQuery
impl ObjectQuery for KitQuery
source§fn sysex_type(&self) -> AnySysexType
fn sysex_type(&self) -> AnySysexType
Returns the sysex type of the object.
source§fn as_sysex_meta(&self) -> SysexMeta
fn as_sysex_meta(&self) -> SysexMeta
Returns the sysex meta data for the object creating it.
source§fn is_targeting_work_buffer(&self) -> bool
fn is_targeting_work_buffer(&self) -> bool
Returns the information if this query is targeting the work buffer.
source§impl Ord for KitQuery
impl Ord for KitQuery
source§impl PartialEq for KitQuery
impl PartialEq for KitQuery
source§impl PartialOrd for KitQuery
impl PartialOrd for KitQuery
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for KitQuery
impl Eq for KitQuery
impl StructuralEq for KitQuery
impl StructuralPartialEq for KitQuery
Auto Trait Implementations§
impl RefUnwindSafe for KitQuery
impl Send for KitQuery
impl Sync for KitQuery
impl Unpin for KitQuery
impl UnwindSafe for KitQuery
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