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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl Encodable for Local
[src]

[src]

impl Decodable for Local
[src]

[src]

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

[src]

Formats the value using the given formatter. Read more

impl HasAttrs for Local
[src]

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

[src]

Auto Trait Implementations

impl !Send for Local

impl !Sync for Local