pub struct PatternData {
col_types: [PatternColType; 6],
data: Vec<Vec<Option<u16>>>,
out_data: Vec<[(f32, u8); 256]>,
strings: Vec<Vec<Option<String>>>,
cursor: (usize, usize),
rows: usize,
edit_step: usize,
dirty_col: [bool; 6],
generation: usize,
}
Fields
col_types: [PatternColType; 6]
data: Vec<Vec<Option<u16>>>
out_data: Vec<[(f32, u8); 256]>
strings: Vec<Vec<Option<String>>>
cursor: (usize, usize)
rows: usize
edit_step: usize
dirty_col: [bool; 6]
generation: usize
Implementations
sourceimpl PatternData
impl PatternData
sourceimpl PatternData
impl PatternData
pub fn is_unset(&self) -> bool
pub fn to_repr(&self) -> PatternRepr
pub fn from_repr(&mut self, repr: &PatternRepr)
pub fn get_out_data(&self) -> &[[(f32, u8); 256]]
fn modified_col(&mut self, col: usize)
pub fn col_is_modified_reset(&mut self, col: usize) -> bool
pub fn col_type(&self, col: usize) -> PatternColType
pub fn sync_out_data(&mut self, col: usize)
Trait Implementations
sourceimpl Debug for PatternData
impl Debug for PatternData
sourceimpl UIPatternModel for PatternData
impl UIPatternModel for PatternData
fn get_cell(&mut self, row: usize, col: usize) -> Option<&str>
fn clear_cell(&mut self, row: usize, col: usize)
fn get_cell_value(&mut self, row: usize, col: usize) -> u16
fn set_cell_value(&mut self, row: usize, col: usize, val: u16)
fn is_col_note(&self, col: usize) -> bool
fn is_col_step(&self, col: usize) -> bool
fn is_col_gate(&self, col: usize) -> bool
fn cols(&self) -> usize
fn rows(&self) -> usize
fn set_rows(&mut self, rows: usize)
fn set_col_note_type(&mut self, col: usize)
fn set_col_step_type(&mut self, col: usize)
fn set_col_value_type(&mut self, col: usize)
fn set_col_gate_type(&mut self, col: usize)
fn set_cursor(&mut self, row: usize, col: usize)
fn get_cursor(&self) -> (usize, usize)
fn set_edit_step(&mut self, es: usize)
fn get_edit_step(&mut self) -> usize
fn get_generation(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for PatternData
impl Send for PatternData
impl Sync for PatternData
impl Unpin for PatternData
impl UnwindSafe for PatternData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more