Struct rustc_codegen_llvm::debuginfo::metadata::unique_type_id::TypeIdInterner
source · [−]pub(super) struct TypeIdInterner {
arena: DroplessArena,
names: FxHashMap<&'static str, UniqueTypeId>,
strings: Vec<&'static str>,
}Fields
arena: DroplessArenanames: FxHashMap<&'static str, UniqueTypeId>strings: Vec<&'static str>Implementations
sourceimpl TypeIdInterner
impl TypeIdInterner
pub(super) fn intern(&mut self, string: &str) -> UniqueTypeId
pub(super) fn get(&self, symbol: UniqueTypeId) -> &str
Trait Implementations
sourceimpl Default for TypeIdInterner
impl Default for TypeIdInterner
sourcefn default() -> TypeIdInterner
fn default() -> TypeIdInterner
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TypeIdInterner
impl Send for TypeIdInterner
impl !Sync for TypeIdInterner
impl Unpin for TypeIdInterner
impl UnwindSafe for TypeIdInterner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes