pub enum Dialect {
Ecma,
Python,
Go,
Rust,
Pcre2,
Java,
}Expand description
A regex dialect. Patterns are interpreted by the rules of the dialect they were written for (RULE-10).
Variants§
Ecma
ECMAScript.
Python
Python re.
Go
Go / RE2.
Rust
Rust regex.
Pcre2
PCRE2.
Java
Java java.util.regex (not a column of the support matrix; see docs/13 notes).
Implementations§
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Forget for Dialect
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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