Struct 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]

impl Decodable for Local
[src]

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

Formats the value using the given formatter. Read more

impl HasAttrs for Local
[src]

Important traits for &'a [u8]

Auto Trait Implementations

impl !Send for Local

impl !Sync for Local