Trait prototty::View
[−]
[src]
pub trait View<T> { fn view<G: ViewGrid>(
&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>(&self, data: &T, offset: Coord, depth: i32, grid: &mut G)
Update the cells in grid
to describe how a type should be rendered.