pub enum Engine {
Real,
Fallback,
}Expand description
Which engine backs a compiled pattern — observable via Regex::engine.
Variants§
Real
REAL’s linear-time, ReDoS-safe engine.
Fallback
The regex crate (only when the fallback feature delegated this pattern) — not ReDoS-safe.
Trait Implementations§
impl Copy for Engine
impl Eq for Engine
impl StructuralPartialEq for Engine
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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