pub struct RawMatch {
pub start: usize,
pub finish: usize,
pub captures: Vec<(String, String)>,
}Expand description
One match found by a MatchParser, in coordinates relative to the
scanned text (add the scan offset for absolute positions).
Fields§
§start: usizeByte offset of the match start, relative to the scanned text.
finish: usizeByte offset just past the match, relative to the scanned text.
captures: Vec<(String, String)>Free-form capture data: named groups for templates and callbacks.
Implementations§
Trait Implementations§
impl Eq for RawMatch
impl StructuralPartialEq for RawMatch
Auto Trait Implementations§
impl Freeze for RawMatch
impl RefUnwindSafe for RawMatch
impl Send for RawMatch
impl Sync for RawMatch
impl Unpin for RawMatch
impl UnsafeUnpin for RawMatch
impl UnwindSafe for RawMatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.