Trait Render

Source
pub trait Render<Respond, Output, Error> {
    // Required method
    fn render(self, respond: &mut Respond) -> Result<Output, Error>;
}
Expand description

Represent the ability of a segment of a string template to render template output.

Required Methods§

Source

fn render(self, respond: &mut Respond) -> Result<Output, Error>

Optionally send a query the respond function for output, then render.

Implementors§

Source§

impl<Respond, Output, Error, Query> Render<Respond, SegmentDisplay<Output>, Error> for Segment<Query>
where Respond: FnMut(Query) -> Result<Output, Error>,