pub struct SongSteps {
pub steps: [u8; 2048],
pub bookmarks: [u8; 256],
pub row_bookmarks: Option<[u8; 256]>,
}Fields§
§steps: [u8; 2048]§bookmarks: [u8; 256]Bit vector marking if any song step has a bookmark.
row_bookmarks: Option<[u8; 256]>From firmware version 6.6 onwards
Implementations§
Source§impl SongSteps
impl SongSteps
pub const TRACK_COUNT: usize = 8
pub const ROW_COUNT: usize = 0x100
Sourcepub fn is_bookmarked(&self, row: usize, track: usize) -> bool
pub fn is_bookmarked(&self, row: usize, track: usize) -> bool
Row go from 0 to SongSetps::ROW_COUNT - 1 and track goes from 0 to SongSteps::TRACK_COUNT - 1 here.
pub fn print_screen(&self, f: &mut Formatter<'_>) -> Result
pub fn last_modified_row(&self) -> usize
pub fn print_screen_from_to( &self, f: &mut Formatter<'_>, start: u8, end: u8, ) -> Result
pub fn print_row(&self, f: &mut Formatter<'_>, row: u8) -> Result
Trait Implementations§
impl StructuralPartialEq for SongSteps
Auto Trait Implementations§
impl Freeze for SongSteps
impl RefUnwindSafe for SongSteps
impl Send for SongSteps
impl Sync for SongSteps
impl Unpin for SongSteps
impl UnsafeUnpin for SongSteps
impl UnwindSafe for SongSteps
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