pub struct Regex {
pub ast: Node,
pub case_insensitive: bool,
pub dot_all: bool,
pub span: Range<usize>,
}
Expand description
A regular expression.
Fields§
§ast: Node
The AST of the regular expression parsed inside the /
delimiters.
case_insensitive: bool
case insensitive (i
flag).
dot_all: bool
.
matches \n
(s
flag).
span: Range<usize>
The span of the regex expression
Trait Implementations§
impl Eq for Regex
impl StructuralPartialEq for Regex
Auto Trait Implementations§
impl Freeze for Regex
impl RefUnwindSafe for Regex
impl Send for Regex
impl Sync for Regex
impl Unpin for Regex
impl UnwindSafe for Regex
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