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.


Trait Implementations

impl ToTokens for Local

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for Local

Formats the value using the given formatter. Read more

impl Eq for Local

impl PartialEq for Local

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

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

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