pub struct RegexMatch {
pub index: usize,
pub groups: Vec<Option<String>>,
}Expand description
The result of RegExp.prototype.exec: index is a byte offset into the searched text,
and groups[i] is match[i] (None = undefined, a group that didn’t participate).
Fields§
§index: usize§groups: Vec<Option<String>>Implementations§
Trait Implementations§
Source§impl Clone for RegexMatch
impl Clone for RegexMatch
Source§impl Debug for RegexMatch
impl Debug for RegexMatch
impl Eq for RegexMatch
Source§impl PartialEq for RegexMatch
impl PartialEq for RegexMatch
impl StructuralPartialEq for RegexMatch
Auto Trait Implementations§
impl Forget for RegexMatch
impl Freeze for RegexMatch
impl RefUnwindSafe for RegexMatch
impl Send for RegexMatch
impl Sync for RegexMatch
impl Unpin for RegexMatch
impl UnsafeUnpin for RegexMatch
impl UnwindSafe for RegexMatch
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