pub struct ParsedTemplate {
pub elements: Vec<TemplateElement>,
pub placeholders: Vec<Placeholder>,
pub placeholder_names: HashSet<String>,
}Expand description
Parsed template structure
Fields§
§elements: Vec<TemplateElement>Template elements
placeholders: Vec<Placeholder>Extracted placeholders
placeholder_names: HashSet<String>All placeholder names found
Trait Implementations§
Source§impl Clone for ParsedTemplate
impl Clone for ParsedTemplate
Source§fn clone(&self) -> ParsedTemplate
fn clone(&self) -> ParsedTemplate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedTemplate
impl RefUnwindSafe for ParsedTemplate
impl Send for ParsedTemplate
impl Sync for ParsedTemplate
impl Unpin for ParsedTemplate
impl UnwindSafe for ParsedTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more