Struct rytm_rs::query::PatternQuery
source · pub struct PatternQuery { /* private fields */ }
Expand description
A query to retrieve a Pattern
object from rytm.
Implementations§
source§impl PatternQuery
impl PatternQuery
sourcepub fn new(pattern_index: usize) -> Result<Self, RytmError>
pub fn new(pattern_index: usize) -> Result<Self, RytmError>
Creates a new pattern query.
Accepts a pattern index in the range of 0..=127
.
sourcepub fn new_with_device_id(
pattern_index: usize,
device_id: u8
) -> Result<Self, RytmError>
pub fn new_with_device_id( pattern_index: usize, device_id: u8 ) -> Result<Self, RytmError>
Creates a new pattern query.
Accepts a pattern 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 pattern query for the pattern 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 pattern query for the pattern in the work buffer.
Accepts a device id in the range of 0..=255
.
Trait Implementations§
source§impl Clone for PatternQuery
impl Clone for PatternQuery
source§fn clone(&self) -> PatternQuery
fn clone(&self) -> PatternQuery
Returns a copy 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 PatternQuery
impl Debug for PatternQuery
source§impl Default for PatternQuery
impl Default for PatternQuery
source§fn default() -> PatternQuery
fn default() -> PatternQuery
Returns the “default value” for a type. Read more
source§impl Hash for PatternQuery
impl Hash for PatternQuery
source§impl ObjectQuery for PatternQuery
impl ObjectQuery for PatternQuery
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 PatternQuery
impl Ord for PatternQuery
source§fn cmp(&self, other: &PatternQuery) -> Ordering
fn cmp(&self, other: &PatternQuery) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PatternQuery
impl PartialEq for PatternQuery
source§fn eq(&self, other: &PatternQuery) -> bool
fn eq(&self, other: &PatternQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PatternQuery
impl PartialOrd for PatternQuery
source§fn partial_cmp(&self, other: &PatternQuery) -> Option<Ordering>
fn partial_cmp(&self, other: &PatternQuery) -> Option<Ordering>
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 PatternQuery
impl Eq for PatternQuery
impl StructuralEq for PatternQuery
impl StructuralPartialEq for PatternQuery
Auto Trait Implementations§
impl RefUnwindSafe for PatternQuery
impl Send for PatternQuery
impl Sync for PatternQuery
impl Unpin for PatternQuery
impl UnwindSafe for PatternQuery
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