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

Method empty

regex/src/literal/mod.rs:60–62  ·  view source on GitHub ↗

Returns a matcher that never matches and never advances the input.

()

Source from the content-addressed store, hash-verified

58impl LiteralSearcher {
59 /// Returns a matcher that never matches and never advances the input.
60 pub fn empty() -> Self {
61 Self::new(Literals::empty(), Matcher::Empty)
62 }
63
64 /// Returns a matcher for literal prefixes from the given set.
65 pub fn prefixes(lits: Literals) -> Self {

Callers

nothing calls this directly

Calls 1

emptyFunction · 0.50

Tested by

no test coverage detected