pub(crate) trait QueryContext {
    type Def: Def;
    type Ref: Ref;
    type Scope: Copy;

    // Required method
    fn min_align(&self, reference: Self::Ref) -> usize;
}
Expand description

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

Required Associated Types§

Required Methods§

source

fn min_align(&self, reference: Self::Ref) -> usize

Implementations on Foreign Types§

source§

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

§

type Def = Def<'tcx>

§

type Ref = Ref<'tcx>

§

type Scope = Ty<'tcx>

source§

fn min_align(&self, reference: Self::Ref) -> usize

Implementors§