[−][src]Trait prototty_render::View
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
)
&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.