pub enum TemplateElement {
Variable(String),
Literal(String),
AbsolutePos(Expr),
RelativePos(i32),
VariablePattern(String),
Dot,
Comma,
}Variants§
Variable(String)
A variable name to receive data.
Literal(String)
A literal string pattern to match.
AbsolutePos(Expr)
An absolute column position.
RelativePos(i32)
A relative column position (+ or -).
VariablePattern(String)
A variable holding a pattern string.
Dot
The dot placeholder (discard data).
Comma
Comma separating multiple argument strings.
Trait Implementations§
Source§impl Clone for TemplateElement
impl Clone for TemplateElement
Source§fn clone(&self) -> TemplateElement
fn clone(&self) -> TemplateElement
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 TemplateElement
impl RefUnwindSafe for TemplateElement
impl Send for TemplateElement
impl Sync for TemplateElement
impl Unpin for TemplateElement
impl UnsafeUnpin for TemplateElement
impl UnwindSafe for TemplateElement
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