Skip to main content

StringIntern

Trait StringIntern 

Source
pub trait StringIntern {
    // Required method
    fn intern_string(&mut self, value: &str) -> Result<u32>;
}
Expand description

Intern decoded string contents in the current section’s string table.

Equal contents must return the same index, including contents already in the table. Implementations report an error if the table cannot represent an index.

Required Methods§

Source

fn intern_string(&mut self, value: &str) -> Result<u32>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl StringIntern for MetadataLoweringContext

Source§

fn intern_string(&mut self, value: &str) -> Result<u32>

Source§

impl<I, V, Ty, Info> StringIntern for LocalModule<I, V, Ty, Info>

Source§

fn intern_string(&mut self, value: &str) -> Result<u32>

Implementors§