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
attrs: Vec<Attribute>
let_token: Let
pats: Punctuated<Pat, Or>
ty: Option<(Colon, Box<Type>)>
init: Option<(Eq, Box<Expr>)>
semi_token: Semi
Trait Implementations
impl ToTokens for Local[src]
impl ToTokens for Localfn to_tokens(&self, tokens: &mut Tokens)[src]
fn to_tokens(&self, tokens: &mut Tokens)Write self to the given Tokens. Read more
fn into_tokens(self) -> Tokens[src]
fn into_tokens(self) -> TokensConvert self directly into a Tokens object. Read more
impl Clone for Local[src]
impl Clone for Local