| 28 | /// The lifetime parameter `'t` refers to the lifetime of the matched text. |
| 29 | #[derive(Copy, Clone, Debug, Eq, PartialEq)] |
| 30 | pub struct Match<'t> { |
| 31 | text: &'t [u8], |
| 32 | start: usize, |
| 33 | end: usize, |
| 34 | } |
| 35 | |
| 36 | impl<'t> Match<'t> { |
| 37 | /// Returns the starting byte offset of the match in the haystack. |
no outgoing calls
no test coverage detected