Struct solang_parser::pt::YulFor
source · pub struct YulFor {
pub loc: Loc,
pub init_block: YulBlock,
pub condition: YulExpression,
pub post_block: YulBlock,
pub execution_block: YulBlock,
}
Expand description
A Yul for statement.
for <init_block> <condition> <post_block> <execution_block>
Fields§
§loc: Loc
The code location.
init_block: YulBlock
The for statement init block.
condition: YulExpression
The for statement condition.
post_block: YulBlock
The for statement post block.
execution_block: YulBlock
The for statement execution block.
Trait Implementations§
source§impl OptionalCodeLocation for YulFor
impl OptionalCodeLocation for YulFor
source§impl PartialEq for YulFor
impl PartialEq for YulFor
impl Eq for YulFor
impl StructuralPartialEq for YulFor
Auto Trait Implementations§
impl Freeze for YulFor
impl RefUnwindSafe for YulFor
impl Send for YulFor
impl Sync for YulFor
impl Unpin for YulFor
impl UnwindSafe for YulFor
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more