pub struct Capture<'h, 'p> {
pub index: usize,
pub length: usize,
pub slice: &'h str,
/* private fields */
}
Expand description
An index, length, slice, and optional group name of a capture in a haystack.
Fields§
§index: usize
§length: usize
§slice: &'h str
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'h, 'p> Freeze for Capture<'h, 'p>
impl<'h, 'p> RefUnwindSafe for Capture<'h, 'p>
impl<'h, 'p> Send for Capture<'h, 'p>
impl<'h, 'p> Sync for Capture<'h, 'p>
impl<'h, 'p> Unpin for Capture<'h, 'p>
impl<'h, 'p> UnwindSafe for Capture<'h, 'p>
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