pub struct Span {
pub start: u32,
pub end: u32,
}Expand description
A match’s byte span alone, for the paths that carry no captures: eight
bytes where a Match is fifty-six, twenty-four of them the registers a
plain scan never fills.
Fields§
§start: u32Inclusive start byte offset of the match in the input.
end: u32Exclusive end byte offset of the match in the input.
Implementations§
Trait Implementations§
impl Copy for Span
impl Eq for Span
Source§impl FromIterator<Span> for Regs
impl FromIterator<Span> for Regs
Source§impl Spanned for Span
impl Spanned for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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