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 Tokens. Read more

Convert self directly into a Tokens object. 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