Enum move_model::ty::TypeDisplayContext
source · [−]pub enum TypeDisplayContext<'a> {
WithoutEnv {
symbol_pool: &'a SymbolPool,
reverse_struct_table: &'a BTreeMap<(ModuleId, StructId), QualifiedSymbol>,
},
WithEnv {
env: &'a GlobalEnv,
type_param_names: Option<Vec<Symbol>>,
},
}
Expand description
Data providing context for displaying types.
Variants
WithoutEnv
Fields
symbol_pool: &'a SymbolPool
WithEnv
Implementations
sourceimpl<'a> TypeDisplayContext<'a>
impl<'a> TypeDisplayContext<'a>
pub fn symbol_pool(&self) -> &SymbolPool
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TypeDisplayContext<'a>
impl<'a> !Send for TypeDisplayContext<'a>
impl<'a> !Sync for TypeDisplayContext<'a>
impl<'a> Unpin for TypeDisplayContext<'a>
impl<'a> !UnwindSafe for TypeDisplayContext<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more