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

Method is_empty

regex/regex-syntax/src/hir/mod.rs:719–724  ·  view source on GitHub ↗

Return true if and only if this HIR is the empty regular expression. Note that this is not defined inductively. That is, it only tests if this kind is the `Empty` variant. To get the inductive definition, use the `is_match_empty` method on [`Hir`](struct.Hir.html).

(&self)

Source from the content-addressed store, hash-verified

717 /// this kind is the `Empty` variant. To get the inductive definition,
718 /// use the `is_match_empty` method on [`Hir`](struct.Hir.html).
719 pub fn is_empty(&self) -> bool {
720 match *self {
721 HirKind::Empty => true,
722 _ => false,
723 }
724 }
725
726 /// Returns true if and only if this kind has any (including possibly
727 /// empty) subexpressions.

Callers 8

dropMethod · 0.45
inductMethod · 0.45
popMethod · 0.45
visit_preMethod · 0.45
visit_postMethod · 0.45
intersectMethod · 0.45
differenceMethod · 0.45
negateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected