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

impl Decodable for Local
[src]

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