pub struct SongQuery { /* private fields */ }
Expand description
A query to retrieve a song object from rytm.
Currently the song object is not supported by rytm-rs.
Implementations§
source§impl SongQuery
impl SongQuery
sourcepub fn new(song_index: usize) -> Result<Self, RytmError>
pub fn new(song_index: usize) -> Result<Self, RytmError>
Creates a new song query.
Accepts a song index in the range of 0..=15
.
sourcepub fn new_with_device_id(
song_index: usize,
device_id: u8
) -> Result<Self, RytmError>
pub fn new_with_device_id( song_index: usize, device_id: u8 ) -> Result<Self, RytmError>
Creates a new song query.
Accepts a song index in the range of 0..=15
.
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 song query for the song 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 song query for the song in the work buffer.
Accepts a device id in the range of 0..=255
.
Trait Implementations§
source§impl ObjectQuery for SongQuery
impl ObjectQuery for SongQuery
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 SongQuery
impl Ord for SongQuery
source§impl PartialEq for SongQuery
impl PartialEq for SongQuery
source§impl PartialOrd for SongQuery
impl PartialOrd for SongQuery
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 SongQuery
impl Eq for SongQuery
impl StructuralEq for SongQuery
impl StructuralPartialEq for SongQuery
Auto Trait Implementations§
impl RefUnwindSafe for SongQuery
impl Send for SongQuery
impl Sync for SongQuery
impl Unpin for SongQuery
impl UnwindSafe for SongQuery
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