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 Freeze for YulVarAssign
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