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§

source

fn visit_text(&mut self, text: &str)

Visit a text part in a template literal.

source

fn visit_hole(&mut self, hole: &FieldValue)

Visit a hole part in a template literal.

Implementations on Foreign Types§

source§

impl<'a, V> LiteralVisitor for &'a mut Vwhere V: LiteralVisitor + ?Sized,

source§

fn visit_text(&mut self, text: &str)

source§

fn visit_hole(&mut self, hole: &FieldValue)

Implementors§