[][src]Struct prototty_grid::Grid

pub struct Grid<C: ColourConversion> { /* fields omitted */ }

Methods

impl<C: ColourConversion> Grid<C>[src]

pub fn new(size: Size, colour_conversion: C) -> Self[src]

pub fn size(&self) -> Size[src]

pub fn resize(&mut self, size: Size)[src]

pub fn clear(&mut self)[src]

pub fn enumerate(&self) -> Enumerate<CommonCell<C::Colour>>[src]

pub fn iter(&self) -> Iter<CommonCell<C::Colour>>[src]

pub fn iter_mut(&mut self) -> IterMut<CommonCell<C::Colour>>[src]

pub fn default_foreground(&mut self) -> C::Colour[src]

pub fn default_background(&mut self) -> C::Colour[src]

Trait Implementations

impl<C: Clone + ColourConversion> Clone for Grid<C> where
    C::Colour: Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<C: Debug + ColourConversion> Debug for Grid<C> where
    C::Colour: Debug
[src]

impl<C: ColourConversion> ViewGrid for Grid<C>[src]

fn set_cell_relative<R>(
    &mut self,
    relative_coord: Coord,
    relative_depth: i32,
    relative_cell: ViewCell,
    context: ViewContext<R>
) where
    R: ViewTransformRgb24
[src]

Auto Trait Implementations

impl<C> Send for Grid<C> where
    C: Send,
    <C as ColourConversion>::Colour: Send

impl<C> Sync for Grid<C> where
    C: Sync,
    <C as ColourConversion>::Colour: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.