pub struct RegExpData {
pub regex: Rc<Regex>,
pub source: String,
pub flags: String,
}Expand description
The compiled pattern an object of ObjectKind::RegExp carries.
Boxed through Rc because a RegExp object is shared by every reference to it and
the pattern is immutable once compiled.
Fields§
§regex: Rc<Regex>The compiled pattern, shared between exec calls.
source: StringPattern source as written, which .source reports.
flags: StringThe flags, in canonical order.
Trait Implementations§
Auto Trait Implementations§
impl !Send for RegExpData
impl !Sync for RegExpData
impl Forget for RegExpData
impl Freeze for RegExpData
impl Move for RegExpData
impl RefUnwindSafe for RegExpData
impl Unpin for RegExpData
impl UnsafeUnpin for RegExpData
impl UnwindSafe for RegExpData
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