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