blob: de417a274d8c0e148499f3b4e13bd189168f975e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
use crate::RenderResult;
/// Takes over a type (Self::Previous) and converts it to a [`RenderResult`](./struct.RenderResult.html)
pub trait Renderer {
/// The previous type in the chain
type Previous;
/// Process the previous value and write the result into the provided [`RenderResult`](./struct.RenderResult.html)
fn render(p: Self::Previous, r: &mut RenderResult);
}
|