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 PartialEq for Expr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Expr
[src]

impl Encodable for Expr
[src]

impl Decodable for Expr
[src]

impl Hash for Expr
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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