Enum solang_parser::pt::YulExpression
source · pub enum YulExpression {
BoolLiteral(Loc, bool, Option<Identifier>),
NumberLiteral(Loc, String, String, Option<Identifier>),
HexNumberLiteral(Loc, String, Option<Identifier>),
HexStringLiteral(HexLiteral, Option<Identifier>),
StringLiteral(StringLiteral, Option<Identifier>),
Variable(Identifier),
FunctionCall(Box<YulFunctionCall>),
SuffixAccess(Loc, Box<YulExpression>, Identifier),
}
Expand description
A Yul expression.
Variants§
BoolLiteral(Loc, bool, Option<Identifier>)
<1> [: <2>]
NumberLiteral(Loc, String, String, Option<Identifier>)
<1>[e<2>] [: <2>]
HexNumberLiteral(Loc, String, Option<Identifier>)
<1> [: <2>]
HexStringLiteral(HexLiteral, Option<Identifier>)
<0> [: <1>]
StringLiteral(StringLiteral, Option<Identifier>)
<0> [: <1>]
Variable(Identifier)
Any valid Identifier.
FunctionCall(Box<YulFunctionCall>)
SuffixAccess(Loc, Box<YulExpression>, Identifier)
<1>.<2>
Trait Implementations§
source§impl Clone for YulExpression
impl Clone for YulExpression
source§fn clone(&self) -> YulExpression
fn clone(&self) -> YulExpression
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 CodeLocation for YulExpression
impl CodeLocation for YulExpression
source§impl Debug for YulExpression
impl Debug for YulExpression
source§impl Display for YulExpression
impl Display for YulExpression
source§impl OptionalCodeLocation for YulExpression
impl OptionalCodeLocation for YulExpression
source§impl PartialEq for YulExpression
impl PartialEq for YulExpression
source§fn eq(&self, other: &YulExpression) -> bool
fn eq(&self, other: &YulExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for YulExpression
impl StructuralEq for YulExpression
impl StructuralPartialEq for YulExpression
Auto Trait Implementations§
impl RefUnwindSafe for YulExpression
impl Send for YulExpression
impl Sync for YulExpression
impl Unpin for YulExpression
impl UnwindSafe for YulExpression
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