Struct rustc_ap_rustc_ast::ast::Expr [−][src]
pub struct Expr { pub id: NodeId, pub kind: ExprKind, pub span: Span, pub attrs: AttrVec, pub tokens: Option<LazyTokenStream>, }
Expand description
An expression.
Fields
id: NodeId
kind: ExprKind
span: Span
attrs: AttrVec
tokens: Option<LazyTokenStream>
Implementations
Returns true
if this expression would be valid somewhere that expects a value;
for example, an if
condition.
Is this expr either N
, or { N }
.
If this is not the case, name resolution does not resolve N
when using
min_const_generics
as more complex expressions are not supported.
Trait Implementations
This is true
if this AstLike
might support ‘custom’ (proc-macro) inner
attributes. Attributes like #![cfg]
and #![cfg_attr]
are not
considered ‘custom’ attributes Read more
Auto Trait Implementations
impl !RefUnwindSafe for Expr
impl !UnwindSafe for Expr
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V