pub struct StmtLocalDeclaration {
pub names: Vec<AttName>,
pub values: Option<Vec<Expression>>,
pub span: Span,
}Expand description
local variable declaration.
Fields§
§names: Vec<AttName>§values: Option<Vec<Expression>>Some if the variables are initialized.
span: SpanImplementations§
Trait Implementations§
Source§impl Clone for StmtLocalDeclaration
impl Clone for StmtLocalDeclaration
Source§fn clone(&self) -> StmtLocalDeclaration
fn clone(&self) -> StmtLocalDeclaration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StmtLocalDeclaration
impl RefUnwindSafe for StmtLocalDeclaration
impl Send for StmtLocalDeclaration
impl Sync for StmtLocalDeclaration
impl Unpin for StmtLocalDeclaration
impl UnwindSafe for StmtLocalDeclaration
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