Struct syntex_syntax::ast::Local [] [src]

pub struct Local {
    pub pat: P<Pat>,
    pub ty: Option<P<Ty>>,
    pub init: Option<P<Expr>>,
    pub id: NodeId,
    pub span: Span,
    pub attrs: ThinVec<Attribute>,
}

Local represents a let statement, e.g., let <pat>:<ty> = <expr>;

Fields

Initializer expression to set the value, if any

Trait Implementations

impl Clone for Local
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl Encodable for Local
[src]

Serialize a value using an Encoder.

impl Decodable for Local
[src]

Deserialize a value using a Decoder.

impl Hash for Local
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Local
[src]

Formats the value using the given formatter.

impl HasAttrs for Local
[src]