Struct rustc::middle::infer::lub::LubUnstable [-] [+] [src]

pub struct Lub<'a, 'tcx> {
    // some fields omitted
}

"Least upper bound" (common supertype)

Methods

impl<'a, 'tcx> Lub<'a, 'tcx>

fn new(fields: CombineFields<'a, 'tcx>) -> Lub<'a, 'tcx>

Trait Implementations

impl<'a, 'tcx> TypeRelation<'a, 'tcx> for Lub<'a, 'tcx>

fn tag(&self) -> &'static str

fn tcx(&self) -> &'a ctxt<'tcx>

fn a_is_expected(&self) -> bool

fn relate_with_variance<T: Relate<'a, 'tcx>>(&mut self, variance: Variance, a: &T, b: &T) -> RelateResult<'tcx, T>

fn tys(&mut self, a: Ty<'tcx>, b: Ty<'tcx>) -> RelateResult<'tcx, Ty<'tcx>>

fn regions(&mut self, a: Region, b: Region) -> RelateResult<'tcx, Region>

fn binders<T>(&mut self, a: &Binder<T>, b: &Binder<T>) -> RelateResult<'tcx, Binder<T>> where T: Relate<'a, 'tcx>

fn relate<T: Relate<'a, 'tcx>>(&mut self, a: &T, b: &T) -> RelateResult<'tcx, T>

impl<'a, 'tcx> LatticeDir<'a, 'tcx> for Lub<'a, 'tcx>

fn infcx(&self) -> &'a InferCtxt<'a, 'tcx>

fn relate_bound(&self, v: Ty<'tcx>, a: Ty<'tcx>, b: Ty<'tcx>) -> RelateResult<'tcx, ()>