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

Method new

regex/src/re_bytes.rs:57–63  ·  view source on GitHub ↗
(haystack: &'t [u8], start: usize, end: usize)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected