Struct 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
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: 104 bytes