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