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 StructuralEq for YulSwitchOptions
impl StructuralPartialEq for YulSwitchOptions
Auto Trait Implementations§
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