Enum rustc_hir::WherePredicate [−][src]
pub enum WherePredicate<'hir> {
BoundPredicate(WhereBoundPredicate<'hir>),
RegionPredicate(WhereRegionPredicate<'hir>),
EqPredicate(WhereEqPredicate<'hir>),
}Expand description
A single predicate in a where-clause.
Variants
BoundPredicate(WhereBoundPredicate<'hir>)
Tuple Fields
0: WhereBoundPredicate<'hir>A type binding (e.g., for<'c> Foo: Send + Clone + 'c).
RegionPredicate(WhereRegionPredicate<'hir>)
Tuple Fields
0: WhereRegionPredicate<'hir>A lifetime predicate (e.g., 'a: 'b + 'c).
EqPredicate(WhereEqPredicate<'hir>)
Tuple Fields
0: WhereEqPredicate<'hir>An equality predicate (unsupported).
Implementations
Trait Implementations
Auto Trait Implementations
impl<'hir> RefUnwindSafe for WherePredicate
impl<'hir> !Send for WherePredicate
impl<'hir> !Sync for WherePredicate
impl<'hir> Unpin for WherePredicate
impl<'hir> UnwindSafe for WherePredicate
Blanket Implementations
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: 72 bytes
Size for each variant:
BoundPredicate: 48 bytesRegionPredicate: 64 bytesEqPredicate: 32 bytes
