Convenience method to look up a table, possibly by a string.
(&self, name: &K)
| 333 | |
| 334 | /// Convenience method to look up a table, possibly by a string. |
| 335 | pub fn table<K: ?Sized + Hash + Equivalent<Identifier>>(&self, name: &K) -> Option<&TableDef> { |
| 336 | // If the string IS a valid identifier, we can just look it up. |
| 337 | self.tables.get(name) |
| 338 | } |
| 339 | |
| 340 | /// Convenience method to look up a view, possibly by a string. |
| 341 | pub fn view<K: ?Sized + Hash + Equivalent<Identifier>>(&self, name: &K) -> Option<&ViewDef> { |