pub enum RegexSyntax {
Rust,
EcmaScript,
}
Expand description
The regexp syntax that should be used.
Variants§
Rust
Compile regexes to rust-regex syntax. This is the default.
EcmaScript
Compile regexes to ECMAScript syntax. This should be used with the [crate::quirks::component_regex].
NOTE: enabling this syntax kind, means the regex syntax will NOT be validated during parsing.
Trait Implementations§
Source§impl Clone for RegexSyntax
impl Clone for RegexSyntax
Source§fn clone(&self) -> RegexSyntax
fn clone(&self) -> RegexSyntax
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 moreSource§impl Debug for RegexSyntax
impl Debug for RegexSyntax
Source§impl PartialEq for RegexSyntax
impl PartialEq for RegexSyntax
impl Copy for RegexSyntax
impl Eq for RegexSyntax
impl StructuralPartialEq for RegexSyntax
Auto Trait Implementations§
impl Freeze for RegexSyntax
impl RefUnwindSafe for RegexSyntax
impl Send for RegexSyntax
impl Sync for RegexSyntax
impl Unpin for RegexSyntax
impl UnwindSafe for RegexSyntax
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