Trait prototty::Renderer [] [src]

pub trait Renderer {
    type Error: Debug;
    fn render_at<V: View<T>, T>(
        &mut self,
        view: &mut V,
        data: &T,
        offset: Coord,
        depth: i32
    ) -> Result<(), Self::Error>; fn render<V: View<T>, T>(
        &mut self,
        view: &mut V,
        data: &T
    ) -> Result<(), Self::Error> { ... } }

Trait to implement for renderers that take data and a view that knows how to render the data to a grid, and actually draws the result.

Associated Types

Required Methods

Provided Methods

Implementors