PatternData

Struct PatternData 

Source
pub struct PatternData { /* private fields */ }

Implementations§

Source§

impl PatternData

Source

pub fn new(rows: usize) -> Self

Source§

impl PatternData

Source

pub fn is_unset(&self) -> bool

Source

pub fn to_repr(&self) -> PatternRepr

Source

pub fn from_repr(&mut self, repr: &PatternRepr)

Source

pub fn get_out_data(&self) -> &[[(f32, u8); 256]]

Source

pub fn col_is_modified_reset(&mut self, col: usize) -> bool

Source

pub fn col_type(&self, col: usize) -> PatternColType

Source

pub fn sync_out_data(&mut self, col: usize)

Trait Implementations§

Source§

impl Debug for PatternData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl UIPatternModel for PatternData

Source§

fn get_cell(&mut self, row: usize, col: usize) -> Option<&str>

Source§

fn clear_cell(&mut self, row: usize, col: usize)

Source§

fn get_cell_value(&mut self, row: usize, col: usize) -> u16

Source§

fn set_cell_value(&mut self, row: usize, col: usize, val: u16)

Source§

fn is_col_note(&self, col: usize) -> bool

Source§

fn is_col_step(&self, col: usize) -> bool

Source§

fn is_col_gate(&self, col: usize) -> bool

Source§

fn cols(&self) -> usize

Source§

fn rows(&self) -> usize

Source§

fn set_rows(&mut self, rows: usize)

Source§

fn set_col_note_type(&mut self, col: usize)

Source§

fn set_col_step_type(&mut self, col: usize)

Source§

fn set_col_value_type(&mut self, col: usize)

Source§

fn set_col_gate_type(&mut self, col: usize)

Source§

fn set_cursor(&mut self, row: usize, col: usize)

Source§

fn get_cursor(&self) -> (usize, usize)

Source§

fn set_edit_step(&mut self, es: usize)

Source§

fn get_edit_step(&mut self) -> usize

Source§

fn get_generation(&self) -> usize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.