From f1ed18e668a830646fe507ee33c4b010a1690342 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 1 Apr 2026 20:14:56 +0800 Subject: Add documentation for mingling_core --- mingling_core/src/asset/renderer.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mingling_core/src/asset/renderer.rs') 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); } -- cgit