Skip to main content

Render

Trait Render 

Source
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§

Source

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

Implementors§