pub enum RegexFlag {
CaseInsensitive,
Global,
GreedySwap,
IgnoreWhitespaces,
}Expand description
A single regex flag.
Variants§
CaseInsensitive
Regex should be case insensitive. Corresponds to i.
Global
Regex is run for every match in a string. Corresponds to g.
GreedySwap
“Greedy swap” flag. Corresponds to U.
IgnoreWhitespaces
Ignore whitespaces. Corresponds to x.
Trait Implementations§
Source§impl Ord for RegexFlag
impl Ord for RegexFlag
Source§impl PartialOrd for RegexFlag
impl PartialOrd for RegexFlag
impl Copy for RegexFlag
impl Eq for RegexFlag
impl StructuralPartialEq for RegexFlag
Auto Trait Implementations§
impl Freeze for RegexFlag
impl RefUnwindSafe for RegexFlag
impl Send for RegexFlag
impl Sync for RegexFlag
impl Unpin for RegexFlag
impl UnwindSafe for RegexFlag
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