pub struct LocalVarDeclStmt {
pub leading_comments: Vec<Comment>,
pub modifiers: Vec<Modifier>,
pub ty: LocalVarType,
pub declarators: Vec<VariableDeclarator>,
pub semi_span: Span,
}Expand description
A local variable declaration statement: int x = 5, y = 10;.
Fields§
§leading_comments: Vec<Comment>§modifiers: Vec<Modifier>§ty: LocalVarType§declarators: Vec<VariableDeclarator>§semi_span: SpanImplementations§
Trait Implementations§
Source§impl Clone for LocalVarDeclStmt
impl Clone for LocalVarDeclStmt
Source§fn clone(&self) -> LocalVarDeclStmt
fn clone(&self) -> LocalVarDeclStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalVarDeclStmt
impl Debug for LocalVarDeclStmt
impl Eq for LocalVarDeclStmt
Source§impl Hash for LocalVarDeclStmt
impl Hash for LocalVarDeclStmt
Source§impl PartialEq for LocalVarDeclStmt
impl PartialEq for LocalVarDeclStmt
Source§fn eq(&self, other: &LocalVarDeclStmt) -> bool
fn eq(&self, other: &LocalVarDeclStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocalVarDeclStmt
Auto Trait Implementations§
impl Freeze for LocalVarDeclStmt
impl RefUnwindSafe for LocalVarDeclStmt
impl Send for LocalVarDeclStmt
impl Sync for LocalVarDeclStmt
impl Unpin for LocalVarDeclStmt
impl UnsafeUnpin for LocalVarDeclStmt
impl UnwindSafe for LocalVarDeclStmt
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