WhereClause in rustc_ast::ast - Rust (original) (raw)
pub struct WhereClause {
pub has_where_token: bool,
pub predicates: ThinVec<WherePredicate>,
pub span: Span,
}
Expand description
A where-clause in a definition.
true
if we ate a where
token.
This can happen if we parsed no predicates, e.g., struct Foo where {}
. This allows us to pretty-print accurately and provide correct suggestion diagnostics.
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: 24 bytes