Returns the character corresponding to the argument index
(&self, i: i32)
| 109 | |
| 110 | /// Returns the character corresponding to the argument index |
| 111 | pub fn to_char(&self, i: i32) -> Option<&char> { |
| 112 | self.alphabet.get(i as usize) |
| 113 | } |
| 114 | |
| 115 | /// Returns the characters corresponding to the argument indices |
| 116 | pub fn to_chars(&self, indices: &[i32]) -> String { |