[][src]Trait toodee::TranslateOps

pub trait TranslateOps<T>: TooDeeOpsMut<T> {
    fn translate_with_wrap(&mut self, mid: Coordinate) { ... }
fn flip_rows(&mut self) { ... }
fn flip_cols(&mut self) { ... } }

Provides implementations for translate (also known as scroll) operations, and other internal data movement operations such as flipping.

Provided methods

fn translate_with_wrap(&mut self, mid: Coordinate)

Translate (or scroll) the area by moving col_mid to the first column and row_mid to the first row.

All data is preserved by wrapping at the array edges, so fill() could be used to clear old data if required.

fn flip_rows(&mut self)

Flips (or mirrors) the rows.

fn flip_cols(&mut self)

Flips (or mirrors) the columns.

Loading content...

Implementors

impl<'_, T> TranslateOps<T> for TooDeeViewMut<'_, T>[src]

impl<T> TranslateOps<T> for TooDee<T>[src]

Loading content...