pub trait Intern {
type Static;
// Required method
fn intern(self, pool: &mut StringPool) -> Self::Static;
}Expand description
Moves a string into the pool, giving it a ’static lifetime
Required Associated Types§
Required Methods§
fn intern(self, pool: &mut StringPool) -> Self::Static
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".