Enum rustc_hir::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<'hir>
impl<'hir> !Send for WherePredicate<'hir>
impl<'hir> !Sync for WherePredicate<'hir>
impl<'hir> Unpin for WherePredicate<'hir>
impl<'hir> UnwindSafe for WherePredicate<'hir>
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: 64 bytes
Size for each variant:
BoundPredicate: 48 bytesRegionPredicate: 56 bytesEqPredicate: 32 bytes