Enum rustc::middle::ty::PredicateExperimental [-]  [+] [src]

pub enum Predicate<'tcx> {
    Trait(PolyTraitPredicate<'tcx>),
    Equate(PolyEquatePredicate<'tcx>),
    RegionOutlives(PolyRegionOutlivesPredicate),
    TypeOutlives(PolyTypeOutlivesPredicate<'tcx>),
    Projection(PolyProjectionPredicate<'tcx>),
}

Variants

Trait

Corresponds to where Foo : Bar<A,B,C>. Foo here would be the Self type of the trait reference and A, B, and C would be the parameters in the TypeSpace.

Equate

where T1 == T2.

RegionOutlives

where 'a : 'b

TypeOutlives

where T : 'a

Projection

where ::Name == X, approximately. See ProjectionPredicate struct for details.

Methods

impl<'tcx> Predicate<'tcx>

fn has_escaping_regions(&self) -> bool

fn to_opt_poly_trait_ref(&self) -> Option<PolyTraitRef<'tcx>>

Trait Implementations

impl<'tcx> Repr<'tcx> for Predicate<'tcx>

fn repr(&self, tcx: &ctxt<'tcx>) -> String

impl<'tcx> RegionEscape for Predicate<'tcx>

fn has_regions_escaping_depth(&self, depth: u32) -> bool

fn has_escaping_regions(&self) -> bool

impl<'tcx> HasProjectionTypes for Predicate<'tcx>

fn has_projection_types(&self) -> bool

impl<'tcx> ReferencesError for Predicate<'tcx>

fn references_error(&self) -> bool

impl<'tcx> TypeFoldable<'tcx> for Predicate<'tcx>

fn fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> Predicate<'tcx>

impl<'tcx> UserString<'tcx> for Predicate<'tcx>

fn user_string(&self, tcx: &ctxt<'tcx>) -> String

Derived Implementations

impl<'tcx> Show for Predicate<'tcx>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<'tcx, __S: Writer> Hash<__S> for Predicate<'tcx>

fn hash(&self, __arg_0: &mut __S)

impl<'tcx> Eq for Predicate<'tcx>

fn assert_receiver_is_total_eq(&self)

impl<'tcx> PartialEq for Predicate<'tcx>

fn eq(&self, __arg_0: &Predicate<'tcx>) -> bool

fn ne(&self, __arg_0: &Predicate<'tcx>) -> bool

impl<'tcx> Clone for Predicate<'tcx>

fn clone(&self) -> Predicate<'tcx>

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