pub struct Match {
pub start: usize,
pub end: usize,
}Expand description
Represents a single match within the text, defined by a start and end byte offset.
Fields§
§start: usizeThe byte index where the match starts (inclusive).
end: usizeThe byte index where the match ends (exclusive).
Implementations§
Trait Implementations§
impl Eq for Match
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnwindSafe for Match
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