MCPcopy Create free account
hub / github.com/davidblewett/rure-python / new

Method new

regex/src/re_unicode.rs:66–72  ·  view source on GitHub ↗
(haystack: &'t str, start: usize, end: usize)

Source from the content-addressed store, hash-verified

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
75impl<'t> From<Match<'t>> for &'t str {

Callers

nothing calls this directly

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected