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)
| 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. |
no outgoing calls
no test coverage detected