pub struct TextMatch {
pub start: usize,
pub end: usize,
pub captures: Vec<(usize, usize)>,
}Expand description
A successful text-pattern match.
Fields§
§start: usizeStart byte offset.
end: usizeEnd byte offset.
captures: Vec<(usize, usize)>Captured byte ranges.
Trait Implementations§
impl Eq for TextMatch
impl StructuralPartialEq for TextMatch
Auto Trait Implementations§
impl Freeze for TextMatch
impl RefUnwindSafe for TextMatch
impl Send for TextMatch
impl Sync for TextMatch
impl Unpin for TextMatch
impl UnsafeUnpin for TextMatch
impl UnwindSafe for TextMatch
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