blob: 732f9b7436dc944b8d95e91b6678f35525b5c50e (
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) -> RenderResult;
}
|