Trait FormatRenderer
ucglib::build::format
pub trait FormatRenderer { fn render(&self, pos: &Position) -> Result<String, Box<dyn Error>>; }
fn render(&self, pos: &Position) -> Result<String, Box<dyn Error>>
impl<'a> FormatRenderer for ExpressionFormatter<'a>
impl<V: Into<String> + Clone> FormatRenderer for SimpleFormatter<V>
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.