pub enum Cap {
Span(usize, usize),
Pos(usize),
}Expand description
One capture produced by a successful pattern match.
Variants§
Span(usize, usize)
captured span [start, end) in source bytes
Pos(usize)
position capture () — byte offset (0-based; callers add 1)
Trait Implementations§
impl Copy for Cap
impl Eq for Cap
impl StructuralPartialEq for Cap
Auto Trait Implementations§
impl Freeze for Cap
impl RefUnwindSafe for Cap
impl Send for Cap
impl Sync for Cap
impl Unpin for Cap
impl UnsafeUnpin for Cap
impl UnwindSafe for Cap
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