Struct syn::Local [] [src]

pub struct Local {
    pub pat: Box<Pat>,
    pub ty: Option<Box<Ty>>,
    pub init: Option<Box<Expr>>,
    pub attrs: Vec<Attribute>,
}

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

Fields

Initializer expression to set the value, if any

Trait Implementations

impl ToTokens for Local
[src]

[src]

Write self to the given Tokens. Read more

impl Debug for Local
[src]

[src]

Formats the value using the given formatter. Read more

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

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