Struct syn::Local[][src]

pub struct Local {
    pub attrs: Vec<Attribute>,
    pub let_token: Let,
    pub pats: Punctuated<Pat, Or>,
    pub ty: Option<(Colon, Box<Type>)>,
    pub init: Option<(Eq, Box<Expr>)>,
    pub semi_token: Semi,
}

A local let binding: let x: u64 = s.parse()?.

This type is available if Syn is built with the "full" feature.

Fields

Trait Implementations

impl ToTokens for Local
[src]

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for Local
[src]

Formats the value using the given formatter. Read more

impl Eq for Local
[src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Local

impl !Sync for Local