pub struct Matching { /* private fields */ }Expand description
Returns true if the given variable is a string and matches the regex in the pat argument.
The regex will only be compiled once.
{% if value is matching(pat="^hello") %}...{% endif %}Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Matching
impl RefUnwindSafe for Matching
impl Send for Matching
impl Sync for Matching
impl Unpin for Matching
impl UnsafeUnpin for Matching
impl UnwindSafe for Matching
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