Returns true if the argument is a character in this alphabet
(&self, c: char)
| 125 | |
| 126 | /// Returns true if the argument is a character in this alphabet |
| 127 | pub fn contains(&self, c: char) -> bool { |
| 128 | self.inverse.get(c as usize) != Some(&-1) |
| 129 | } |
| 130 | |
| 131 | /// Returns the number of characters in this alphabet (the radix) |
| 132 | pub fn radix(&self) -> usize { |