[]Trait prototty_wasm::prototty_render::View

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

Defines a method for rendering a T to the terminal.

Required methods

fn view<G>(&mut self, data: &T, offset: Coord, depth: i32, grid: &mut G) where
    G: ViewGrid

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.

Loading content...

Implementors

Loading content...