pub trait View<T>where
    T: ?Sized,
{ fn view<G>(&mut self, data: &T, offset: Coord, depth: i32, grid: &mut G)
    where
        G: ViewGrid
; }
Expand description

Defines a method for rendering a T to the terminal.

Required Methods§

Update the cells in grid to describe how a type should be rendered. This mutably borrows self to allow the view to contain buffers/caches which are updated during rendering.

Implementors§