(haystack: &'t str, start: usize, end: usize)
| 64 | /// Creates a new match from the given haystack and byte offsets. |
| 65 | #[inline] |
| 66 | fn new(haystack: &'t str, start: usize, end: usize) -> Match<'t> { |
| 67 | Match { |
| 68 | text: haystack, |
| 69 | start: start, |
| 70 | end: end, |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | impl<'t> From<Match<'t>> for &'t str { |