Enum solang_parser::pt::YulSwitchOptions
source · pub enum YulSwitchOptions {
Case(Loc, YulExpression, YulBlock),
Default(Loc, YulBlock),
}
Expand description
A Yul switch case or default statement. See YulSwitch.
Variants§
Trait Implementations§
source§impl Clone for YulSwitchOptions
impl Clone for YulSwitchOptions
source§fn clone(&self) -> YulSwitchOptions
fn clone(&self) -> YulSwitchOptions
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 YulSwitchOptions
impl CodeLocation for YulSwitchOptions
source§impl Debug for YulSwitchOptions
impl Debug for YulSwitchOptions
source§impl Display for YulSwitchOptions
impl Display for YulSwitchOptions
source§impl PartialEq for YulSwitchOptions
impl PartialEq for YulSwitchOptions
source§fn eq(&self, other: &YulSwitchOptions) -> bool
fn eq(&self, other: &YulSwitchOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for YulSwitchOptions
impl StructuralPartialEq for YulSwitchOptions
Auto Trait Implementations§
impl Freeze for YulSwitchOptions
impl RefUnwindSafe for YulSwitchOptions
impl Send for YulSwitchOptions
impl Sync for YulSwitchOptions
impl Unpin for YulSwitchOptions
impl UnwindSafe for YulSwitchOptions
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