Merge branch 'trunk' into list-append

This commit is contained in:
Chadtech 2020-07-18 21:30:51 -04:00 committed by GitHub
commit 36a259b56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 1659 additions and 789 deletions

View file

@ -346,6 +346,10 @@ impl ModuleIds {
pub fn get_name(&self, id: ModuleId) -> Option<&InlinableString> {
self.by_id.get(id.0 as usize)
}
pub fn available_modules(&self) -> impl Iterator<Item = &InlinableString> {
self.by_id.iter()
}
}
/// An ID that is assigned to interned string identifiers within a module.