pub struct VarDecl {
pub kind: VarDeclKind,
pub declarators: Vec<Declarator>,
pub span: Span,
}Expand description
A declaration statement, with all of its declarators.
Fields§
§kind: VarDeclKindvar, let or const.
declarators: Vec<Declarator>Declarators in source order.
span: SpanSource range.
Trait Implementations§
impl StructuralPartialEq for VarDecl
Auto Trait Implementations§
impl !Send for VarDecl
impl !Sync for VarDecl
impl Forget for VarDecl
impl Freeze for VarDecl
impl Move for VarDecl
impl RefUnwindSafe for VarDecl
impl Unpin for VarDecl
impl UnsafeUnpin for VarDecl
impl UnwindSafe for VarDeclwhere
RawVecInner: UnwindSafe,
Rc<[u8]>: UnwindSafe,
Rc<Vec<u8>>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<RestElement>: UnwindSafe,
BoxRaw<Pattern>: UnwindSafe,
BoxRaw<MemberPattern>: UnwindSafe,
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