pub struct VarDeclTuple {
pub paren_token: Paren,
pub vars: Punctuated<Option<VariableDeclaration>, Comma>,
}
Expand description
A declaration of variables in a tuple: (,,uint256 foo,string memory bar)
.
Solidity Reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.variableDeclarationTuple
Fields§
§paren_token: Paren
§vars: Punctuated<Option<VariableDeclaration>, Comma>
The list of variables being declared. The list can’t be empty, but it
can contain None
elements, indicating the field is empty.
Trait Implementations§
Source§impl Clone for VarDeclTuple
impl Clone for VarDeclTuple
Source§fn clone(&self) -> VarDeclTuple
fn clone(&self) -> VarDeclTuple
Returns a copy 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 moreSource§impl Debug for VarDeclTuple
impl Debug for VarDeclTuple
Source§impl Parse for VarDeclTuple
impl Parse for VarDeclTuple
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for VarDeclTuple
impl Spanned for VarDeclTuple
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.Auto Trait Implementations§
impl Freeze for VarDeclTuple
impl RefUnwindSafe for VarDeclTuple
impl !Send for VarDeclTuple
impl !Sync for VarDeclTuple
impl Unpin for VarDeclTuple
impl UnwindSafe for VarDeclTuple
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