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

    fn is_accessible_from(&self, def: Self::Def, scope: Self::Scope) -> bool;
    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

Is def accessible from the defining module of scope?

Implementations on Foreign Types

Implementors