Struct syn_solidity::YulVarAssign
source · pub struct YulVarAssign {
pub vars: Punctuated<YulPath, Comma>,
pub walrus_token: WalrusToken,
pub assigned_value: YulExpr,
}
Expand description
Yul variable assignment. x := 0
or x, y := foo()
.
Assigning values to multiple variables requires a function call.
Solidity Reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.yulAssignment
Fields§
§vars: Punctuated<YulPath, Comma>
§walrus_token: WalrusToken
§assigned_value: YulExpr
Trait Implementations§
source§impl Clone for YulVarAssign
impl Clone for YulVarAssign
source§fn clone(&self) -> YulVarAssign
fn clone(&self) -> YulVarAssign
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 YulVarAssign
impl Debug for YulVarAssign
source§impl Parse for YulVarAssign
impl Parse for YulVarAssign
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl Spanned for YulVarAssign
impl Spanned for YulVarAssign
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 RefUnwindSafe for YulVarAssign
impl !Send for YulVarAssign
impl !Sync for YulVarAssign
impl Unpin for YulVarAssign
impl UnwindSafe for YulVarAssign
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