Struct rustc_trans::middle::typeck::infer::sub::SubExperimental [-]  [+] [src]

pub struct Sub<'f, 'tcx> {
    // some fields omitted
}

"Greatest lower bound" (common subtype)

Trait Implementations

impl<'f, 'tcx> Combine<'tcx> for Sub<'f, 'tcx>

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

fn tag(&self) -> String

fn a_is_expected(&self) -> bool

fn trace(&self) -> TypeTrace<'tcx>

fn equate(&'a self) -> Equate<'a, 'tcx>

fn sub(&'a self) -> Sub<'a, 'tcx>

fn lub(&'a self) -> Lub<'a, 'tcx>

fn glb(&'a self) -> Glb<'a, 'tcx>

fn contratys(&self, a: &'tcx TyS<'tcx>, b: &'tcx TyS<'tcx>) -> Result<&'tcx TyS<'tcx>, type_err<'tcx>>

fn contraregions(&self, a: Region, b: Region) -> Result<Region, type_err<'tcx>>

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

fn mts(&self, a: &mt<'tcx>, b: &mt<'tcx>) -> Result<mt<'tcx>, type_err<'tcx>>

fn fn_styles(&self, a: FnStyle, b: FnStyle) -> Result<FnStyle, type_err<'tcx>>

fn oncenesses(&self, a: Onceness, b: Onceness) -> Result<Onceness, type_err<'tcx>>

fn builtin_bounds(&self, a: EnumSet<BuiltinBound>, b: EnumSet<BuiltinBound>) -> Result<EnumSet<BuiltinBound>, type_err<'tcx>>

fn tys(&self, a: &'tcx TyS<'tcx>, b: &'tcx TyS<'tcx>) -> Result<&'tcx TyS<'tcx>, type_err<'tcx>>

fn fn_sigs(&self, a: &FnSig<'tcx>, b: &FnSig<'tcx>) -> Result<FnSig<'tcx>, type_err<'tcx>>

fn trait_refs(&self, a: &TraitRef<'tcx>, b: &TraitRef<'tcx>) -> Result<TraitRef<'tcx>, type_err<'tcx>>

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

fn tps(&self, ParamSpace, &[&'tcx TyS<'tcx>], &[&'tcx TyS<'tcx>]) -> Result<Vec<&'tcx TyS<'tcx>>, type_err<'tcx>>

fn substs(&self, DefId, &Substs<'tcx>, &Substs<'tcx>) -> Result<Substs<'tcx>, type_err<'tcx>>

fn substs_variances(&self, Option<&ItemVariances>, &Substs<'tcx>, &Substs<'tcx>) -> Result<Substs<'tcx>, type_err<'tcx>>

fn bare_fn_tys(&self, &BareFnTy<'tcx>, &BareFnTy<'tcx>) -> Result<BareFnTy<'tcx>, type_err<'tcx>>

fn closure_tys(&self, &ClosureTy<'tcx>, &ClosureTy<'tcx>) -> Result<ClosureTy<'tcx>, type_err<'tcx>>

fn args(&self, &'tcx TyS<'tcx>, &'tcx TyS<'tcx>) -> Result<&'tcx TyS<'tcx>, type_err<'tcx>>

fn abi(&self, Abi, Abi) -> Result<Abi, type_err<'tcx>>

fn existential_bounds(&self, ExistentialBounds, ExistentialBounds) -> Result<ExistentialBounds, type_err<'tcx>>

fn trait_stores(&self, terr_vstore_kind, TraitStore, TraitStore) -> Result<TraitStore, type_err<'tcx>>