Trait fv_template::LiteralVisitor
source · pub trait LiteralVisitor {
// Required methods
fn visit_text(&mut self, text: &str);
fn visit_hole(&mut self, hole: &FieldValue);
}
Expand description
A visitor for the parts of a template string.
Required Methods§
sourcefn visit_text(&mut self, text: &str)
fn visit_text(&mut self, text: &str)
Visit a text part in a template literal.
sourcefn visit_hole(&mut self, hole: &FieldValue)
fn visit_hole(&mut self, hole: &FieldValue)
Visit a hole part in a template literal.