[][src]Trait ucglib::build::format::FormatRenderer

pub trait FormatRenderer {
    fn render(&self, pos: &Position) -> Result<String, Box<dyn Error>>;
}

Required methods

fn render(&self, pos: &Position) -> Result<String, Box<dyn Error>>

Loading content...

Implementors

impl<'a> FormatRenderer for ExpressionFormatter<'a>[src]

impl<V: Into<String> + Clone> FormatRenderer for SimpleFormatter<V>[src]

fn render(&self, pos: &Position) -> Result<String, Box<dyn Error>>[src]

Renders a formatter to a string or returns an error.

If the formatter has the wrong number of arguments for the number of replacements it will return an error. Otherwise it will return the formatted string.

Loading content...