Skip to main content

QueryContext

Trait QueryContext 

Source
pub(crate) trait QueryContext {
    type Def: Def;
    type Region: Region;
    type Type: Type;
}
Expand description

Context necessary to answer the question “Are these types transmutable?”.

Required Associated Types§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'tcx> QueryContext for TyCtxt<'tcx>

Source§

type Def = Def<'tcx>

Source§

type Region = Region<'tcx>

Source§

type Type = Ty<'tcx>

Implementors§