Struct syntax::ast::Expr[][src]

pub struct Expr {
    pub id: NodeId,
    pub node: ExprKind,
    pub span: Span,
    pub attrs: ThinVec<Attribute>,
}

An expression

Fields

Methods

impl Expr
[src]

Whether this expression would be valid somewhere that expects a value, for example, an if condition.

Trait Implementations

impl Clone for Expr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for Expr
[src]

impl Decodable for Expr
[src]

impl Debug for Expr
[src]

Formats the value using the given formatter. Read more

impl HasAttrs for Expr
[src]

Important traits for &'a [u8]

Auto Trait Implementations

impl !Send for Expr

impl !Sync for Expr