pub struct VariableDeclarator {
pub name: Option<Ident>,
pub dims: Vec<ArrayDim>,
pub initializer: Option<Expr>,
}Expand description
A variable declarator: name [= initializer].
Fields§
§name: Option<Ident>§dims: Vec<ArrayDim>§initializer: Option<Expr>Trait Implementations§
Source§impl Clone for VariableDeclarator
impl Clone for VariableDeclarator
Source§fn clone(&self) -> VariableDeclarator
fn clone(&self) -> VariableDeclarator
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 VariableDeclarator
impl Debug for VariableDeclarator
impl Eq for VariableDeclarator
Source§impl Hash for VariableDeclarator
impl Hash for VariableDeclarator
Source§impl PartialEq for VariableDeclarator
impl PartialEq for VariableDeclarator
Source§fn eq(&self, other: &VariableDeclarator) -> bool
fn eq(&self, other: &VariableDeclarator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VariableDeclarator
Auto Trait Implementations§
impl Freeze for VariableDeclarator
impl RefUnwindSafe for VariableDeclarator
impl Send for VariableDeclarator
impl Sync for VariableDeclarator
impl Unpin for VariableDeclarator
impl UnsafeUnpin for VariableDeclarator
impl UnwindSafe for VariableDeclarator
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