pub struct TypeEnv {
pub types: IndexMap<String, TypeDef>,
pub ctor_to_type: IndexMap<String, String>,
pub dep_alias_prefixes: IndexMap<String, String>,
}Fields§
§types: IndexMap<String, TypeDef>Type-name → definition.
ctor_to_type: IndexMap<String, String>Constructor name → owning type-name.
dep_alias_prefixes: IndexMap<String, String>Import alias → dependency module mangle prefix (#963). When a dependency
is resolved as a whole package, its types are registered under canonical
prefix names (error_<hash>.DbErr); this maps an import alias e to
that prefix so an alias-qualified annotation e.DbErr is normalized to
the same canonical Con in ty_from_canon_env — making a
directly-imported module and the copies inlined into its sibling modules
one type. Empty in the ordinary (inlined / no-dependency) case.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeEnv
impl RefUnwindSafe for TypeEnv
impl Send for TypeEnv
impl Sync for TypeEnv
impl Unpin for TypeEnv
impl UnsafeUnpin for TypeEnv
impl UnwindSafe for TypeEnv
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