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>)
A type binding (e.g., for<'c> Foo: Send + Clone + 'c
).
Tuple Fields of BoundPredicate
0: WhereBoundPredicate<'hir>
RegionPredicate(WhereRegionPredicate<'hir>)
A lifetime predicate (e.g., 'a: 'b + 'c
).
Tuple Fields of RegionPredicate
0: WhereRegionPredicate<'hir>
EqPredicate(WhereEqPredicate<'hir>)
An equality predicate (unsupported).
Tuple Fields of EqPredicate
0: WhereEqPredicate<'hir>
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