Struct chalk_solve::display::state::IdAliasStore
source · pub struct IdAliasStore<T> {
aliases: IndexMap<T, u32>,
next_unused_for_name: BTreeMap<String, u32>,
}
Fields§
§aliases: IndexMap<T, u32>
Map from the DefIds we’ve encountered to a u32 alias id unique to all ids the same name.
next_unused_for_name: BTreeMap<String, u32>
Map from each name to the next unused u32 alias id.
Implementations§
source§impl<T: Copy + Eq + Hash> IdAliasStore<T>
impl<T: Copy + Eq + Hash> IdAliasStore<T>
fn alias_for_id_name(&mut self, id: T, name: String) -> String
Trait Implementations§
source§impl<T: Debug> Debug for IdAliasStore<T>
impl<T: Debug> Debug for IdAliasStore<T>
Auto Trait Implementations§
impl<T> Freeze for IdAliasStore<T>
impl<T> RefUnwindSafe for IdAliasStore<T>where
T: RefUnwindSafe,
impl<T> Send for IdAliasStore<T>where
T: Send,
impl<T> Sync for IdAliasStore<T>where
T: Sync,
impl<T> Unpin for IdAliasStore<T>where
T: Unpin,
impl<T> UnwindSafe for IdAliasStore<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.