Type Alias DeepRejectCtxt

Source
pub type DeepRejectCtxt<'tcx, const INSTANTIATE_LHS_WITH_INFER: bool, const INSTANTIATE_RHS_WITH_INFER: bool> = DeepRejectCtxt<TyCtxt<'tcx>, INSTANTIATE_LHS_WITH_INFER, INSTANTIATE_RHS_WITH_INFER>;

Aliased Type§

struct DeepRejectCtxt<'tcx, const INSTANTIATE_LHS_WITH_INFER: bool, const INSTANTIATE_RHS_WITH_INFER: bool> { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes

Implementations

Source§

impl<I, const INSTANTIATE_LHS_WITH_INFER: bool, const INSTANTIATE_RHS_WITH_INFER: bool> DeepRejectCtxt<I, INSTANTIATE_LHS_WITH_INFER, INSTANTIATE_RHS_WITH_INFER>
where I: Interner,

Source

pub fn args_may_unify( self, obligation_args: <I as Interner>::GenericArgs, impl_args: <I as Interner>::GenericArgs, ) -> bool

Source

pub fn types_may_unify( self, lhs: <I as Interner>::Ty, rhs: <I as Interner>::Ty, ) -> bool

Source§

impl<I> DeepRejectCtxt<I, false, false>
where I: Interner,

Source

pub fn relate_rigid_rigid(_interner: I) -> DeepRejectCtxt<I, false, false>

Treat parameters in both the lhs and the rhs as rigid.

Source§

impl<I> DeepRejectCtxt<I, false, true>
where I: Interner,

Source

pub fn relate_rigid_infer(_interner: I) -> DeepRejectCtxt<I, false, true>

Treat parameters in the lhs as rigid, and in rhs as infer vars.

Source§

impl<I> DeepRejectCtxt<I, true, true>
where I: Interner,

Source

pub fn relate_infer_infer(_interner: I) -> DeepRejectCtxt<I, true, true>

Treat parameters in both the lhs and the rhs as infer vars.

Trait Implementations

Source§

impl<I, const INSTANTIATE_LHS_WITH_INFER: bool, const INSTANTIATE_RHS_WITH_INFER: bool> Clone for DeepRejectCtxt<I, INSTANTIATE_LHS_WITH_INFER, INSTANTIATE_RHS_WITH_INFER>
where I: Clone + Interner,

Source§

fn clone( &self, ) -> DeepRejectCtxt<I, INSTANTIATE_LHS_WITH_INFER, INSTANTIATE_RHS_WITH_INFER>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I, const INSTANTIATE_LHS_WITH_INFER: bool, const INSTANTIATE_RHS_WITH_INFER: bool> Debug for DeepRejectCtxt<I, INSTANTIATE_LHS_WITH_INFER, INSTANTIATE_RHS_WITH_INFER>
where I: Debug + Interner,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<I, const INSTANTIATE_LHS_WITH_INFER: bool, const INSTANTIATE_RHS_WITH_INFER: bool> Copy for DeepRejectCtxt<I, INSTANTIATE_LHS_WITH_INFER, INSTANTIATE_RHS_WITH_INFER>
where I: Copy + Interner,