(haystack: &'t [u8], start: usize, end: usize)
| 55 | /// Creates a new match from the given haystack and byte offsets. |
| 56 | #[inline] |
| 57 | fn new(haystack: &'t [u8], start: usize, end: usize) -> Match<'t> { |
| 58 | Match { |
| 59 | text: haystack, |
| 60 | start: start, |
| 61 | end: end, |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | /// A compiled regular expression for matching arbitrary bytes. |