pub struct VariablePattern {
pub name: String,
pub regex: Regex,
pub category: VariableCategory,
}Expand description
Regex-based pattern used to detect variable content.
Fields§
§name: StringStable placeholder name inserted into the template.
regex: RegexRegex used to detect matching content.
category: VariableCategorySemantic category assigned to matches from this pattern.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariablePattern
impl RefUnwindSafe for VariablePattern
impl Send for VariablePattern
impl Sync for VariablePattern
impl Unpin for VariablePattern
impl UnsafeUnpin for VariablePattern
impl UnwindSafe for VariablePattern
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