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