pub struct CustomPattern {
pub name: String,
pub regex: String,
}Expand description
A caller-supplied pattern: name is the placeholder label ([CASE_ID]
for case_id), regex the expression (the regex crate’s syntax —
no look-around); the whole match is the span, or capture group 1 when
the expression has one.
Fields§
§name: String§regex: StringImplementations§
Trait Implementations§
Source§impl Clone for CustomPattern
impl Clone for CustomPattern
Source§impl Debug for CustomPattern
impl Debug for CustomPattern
impl Eq for CustomPattern
Source§impl PartialEq for CustomPattern
impl PartialEq for CustomPattern
impl StructuralPartialEq for CustomPattern
Auto Trait Implementations§
impl Freeze for CustomPattern
impl RefUnwindSafe for CustomPattern
impl Send for CustomPattern
impl Sync for CustomPattern
impl Unpin for CustomPattern
impl UnsafeUnpin for CustomPattern
impl UnwindSafe for CustomPattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.