[][src]Trait prototty_render::View

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

Defines a method for rendering a T to the terminal.

Required methods

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

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...