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,
}
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>
§let_token: Let
§pat: Box<Pat>
§ty: Option<(Colon, Box<Type>)>
§init: Option<(Eq, Box<Expr>)>
§semi_token: Semi
Trait Implementations§
impl Eq for Local
impl StructuralPartialEq for Local
Auto Trait Implementations§
impl Freeze for Local
impl RefUnwindSafe for Local
impl !Send for Local
impl !Sync for Local
impl Unpin for Local
impl UnwindSafe for Local
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.