If this group is non-capturing, then this returns the (possibly empty) set of flags. Otherwise, `None` is returned.
(&self)
| 1202 | /// If this group is non-capturing, then this returns the (possibly empty) |
| 1203 | /// set of flags. Otherwise, `None` is returned. |
| 1204 | pub fn flags(&self) -> Option<&Flags> { |
| 1205 | match self.kind { |
| 1206 | GroupKind::NonCapturing(ref flags) => Some(flags), |
| 1207 | _ => None, |
| 1208 | } |
| 1209 | } |
| 1210 | |
| 1211 | /// Returns true if and only if this group is capturing. |
| 1212 | pub fn is_capturing(&self) -> bool { |