blob: 1d5a2c1b44f72d9fc17e502a3f3d478636b8c33a (
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);
}
|