Convenience method to look up a reducer, possibly by a string.
(&self, name: &K)
| 351 | |
| 352 | /// Convenience method to look up a reducer, possibly by a string. |
| 353 | pub fn reducer<K: ?Sized + Hash + Equivalent<Identifier>>(&self, name: &K) -> Option<&ReducerDef> { |
| 354 | // If the string IS a valid identifier, we can just look it up. |
| 355 | self.reducers.get(name) |
| 356 | } |
| 357 | |
| 358 | /// Convenience method to look up a reducer, possibly by a string, returning its id as well. |
| 359 | pub fn reducer_full<K: ?Sized + Hash + Equivalent<Identifier>>( |
no test coverage detected