aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/asset/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/src/asset/renderer.rs')
-rw-r--r--mingling_core/src/asset/renderer.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mingling_core/src/asset/renderer.rs b/mingling_core/src/asset/renderer.rs
index 3852b55..de417a2 100644
--- a/mingling_core/src/asset/renderer.rs
+++ b/mingling_core/src/asset/renderer.rs
@@ -1,6 +1,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);
}