Renderable

Trait Renderable 

Source
pub trait Renderable {
    type Result;

    // Required method
    fn render(
        &self,
        archetect: &mut Archetect,
        context: &Context,
    ) -> Result<Self::Result, RenderError>;
}

Required Associated Types§

Required Methods§

Source

fn render( &self, archetect: &mut Archetect, context: &Context, ) -> Result<Self::Result, RenderError>

Implementations on Foreign Types§

Source§

impl Renderable for &str

Source§

type Result = String

Source§

fn render( &self, archetect: &mut Archetect, context: &Context, ) -> Result<Self::Result, RenderError>

Source§

impl Renderable for &String

Source§

type Result = String

Source§

fn render( &self, archetect: &mut Archetect, context: &Context, ) -> Result<Self::Result, RenderError>

Source§

impl Renderable for &Path

Source§

type Result = PathBuf

Source§

fn render( &self, archetect: &mut Archetect, context: &Context, ) -> Result<Self::Result, RenderError>

Implementors§