Return the names of all private tables, in alphabetical order.
(module: &ModuleDef)
| 151 | |
| 152 | /// Return the names of all private tables, in alphabetical order. |
| 153 | pub fn private_table_names(module: &ModuleDef) -> Vec<String> { |
| 154 | module |
| 155 | .tables() |
| 156 | .filter(|table| table.table_access == TableAccess::Private) |
| 157 | .sorted_by_key(|table| &table.name) |
| 158 | .map(|table| table.name.to_string()) |
| 159 | .collect() |
| 160 | } |
| 161 | |
| 162 | /// Iterate over all the [`ViewDef`]s defined by the module, in alphabetical order by name. |
| 163 | /// |