show rule variant count
This commit is contained in:
parent
a2382a8676
commit
596498248e
2 changed files with 8 additions and 3 deletions
|
@ -186,6 +186,10 @@ impl Rule {
|
|||
self.generate_variants();
|
||||
}
|
||||
|
||||
pub fn variant_count(&self) -> usize {
|
||||
self.variants.len()
|
||||
}
|
||||
|
||||
pub fn generate_variants(&mut self) {
|
||||
self.variants.clear();
|
||||
self.variants.push(self.base.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue