pub trait Render {
// Required method
fn render(&self, context: &CatContext) -> Result<RenderSite, CatError>;
}Expand description
Trait umožňující renderování struktury jako Markdown/HT?ML
Required Methods§
Sourcefn render(&self, context: &CatContext) -> Result<RenderSite, CatError>
fn render(&self, context: &CatContext) -> Result<RenderSite, CatError>
metoda pro renderování daného typu.
V případě, že renderování selže by měla implementace vracet správný chybový typ