pub struct Regex {
pub source: String,
pub flags: Flags,
pub node: Node,
pub groups: usize,
pub nullable: bool,
}Expand description
A compiled pattern.
Fields§
§source: StringThe original source, which .source reports.
flags: FlagsThe flags it was compiled with.
node: NodeRoot of the syntax tree.
groups: usizeHow many capture groups it has, excluding the whole-match register.
nullable: boolWhether it can match the empty string.
Implementations§
Auto Trait Implementations§
impl Forget for Regex
impl Freeze for Regex
impl Move for Regex
impl RefUnwindSafe for Regex
impl Send for Regex
impl Sync for Regex
impl Unpin for Regex
impl UnsafeUnpin 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