Struct devise::syn::Local [−][src]
pub struct Local {
pub attrs: Vec<Attribute, Global>,
pub let_token: Let,
pub pats: Punctuated<Pat, Or>,
pub ty: Option<(Colon, Box<Type, Global>)>,
pub init: Option<(Eq, Box<Expr, Global>)>,
pub semi_token: Semi,
}
Expand description
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, Global>
let_token: Let
pats: Punctuated<Pat, Or>
ty: Option<(Colon, Box<Type, Global>)>
init: Option<(Eq, Box<Expr, Global>)>
semi_token: Semi
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Local
impl UnwindSafe for Local
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more