pub struct MatchSpan { /* private fields */ }
Expand description
Span of a match – its start and end index.
The end index is exclusive. 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 20.
This is in line with what a [17..21]
slice in Rust represents.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchSpan
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