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]

[src]

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

[src]

Trait Implementations

impl Clone for Expr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Expr
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Expr
[src]

impl Encodable for Expr
[src]

[src]

impl Decodable for Expr
[src]

[src]

impl Hash for Expr
[src]

[src]

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

1.3.0
[src]

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

impl Debug for Expr
[src]

[src]

Formats the value using the given formatter. Read more

impl HasAttrs for Expr
[src]

Important traits for &'a mut [u8]
[src]

[src]

Auto Trait Implementations

impl !Send for Expr

impl !Sync for Expr