(&self)
| 1976 | } |
| 1977 | |
| 1978 | pub fn get_error(&self) -> Option<&str> { |
| 1979 | return if self.error.is_empty() { |
| 1980 | None |
| 1981 | } else { |
| 1982 | Some(&self.error) |
| 1983 | } |
| 1984 | } |
| 1985 | |
| 1986 | pub fn initialize_all_rules() -> Result<()> { |
| 1987 | // this forces initialization of things beyond just the speech rules (e.g, the defs.yaml files get read) |
no test coverage detected