pub trait NameMapIntern {
type Key;
// Required methods
fn intern(&mut self, s: &str) -> Self::Key;
fn lookup(&self, s: &str) -> Option<Self::Key>;
}Expand description
A helper trait used in conjunction with NameMap to optionally intern
keys to non-strings.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".