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

Method is_match

regex/src/dfa.rs:227–232  ·  view source on GitHub ↗

Returns true if this result corresponds to a match.

(&self)

Source from the content-addressed store, hash-verified

225impl<T> Result<T> {
226 /// Returns true if this result corresponds to a match.
227 pub fn is_match(&self) -> bool {
228 match *self {
229 Result::Match(_) => true,
230 Result::NoMatch(_) | Result::Quit => false,
231 }
232 }
233
234 /// Maps the given function onto T and returns the result.
235 ///

Callers 5

forward_manyMethod · 0.45
exec_atMethod · 0.45
exec_byteMethod · 0.45
cached_state_keyMethod · 0.45
fmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected