pub trait InternedStrings {
// Required method
fn take_strings(&mut self) -> Vec<String>;
}Expand description
A lowering context that interns string literals into the section’s string table.
vihaco_syntax::ParsedModule::lower_with_metadata uses it to move the
completed table into the module. Contexts that wrap
MetadataLoweringContext implement it by delegating.
Required Methods§
Sourcefn take_strings(&mut self) -> Vec<String>
fn take_strings(&mut self) -> Vec<String>
Take the string table: the metadata’s strings followed by every string interned during lowering, in first-occurrence order.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".