pub struct MatchSpan {
pub start_idx: MatchIndex,
pub end_idx: MatchIndex,
}
Expand description
Span of a match – its start and end index.
The end index is inclusive. For example, the value
true
may have the span of (17, 21), meaning that
the first character, ‘t’, occurs at index 17, and the last
character, e
occurs at index 21.
Fields§
§start_idx: MatchIndex
Starting index of the match.
end_idx: MatchIndex
Last index of the match.
Auto Trait Implementations§
impl RefUnwindSafe for MatchSpan
impl Send for MatchSpan
impl Sync for MatchSpan
impl Unpin for MatchSpan
impl UnwindSafe for MatchSpan
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