Struct ressa::node::SwitchStatement
source · pub struct SwitchStatement {
pub discriminant: Expression,
pub cases: Vec<SwitchCase>,
}
Expand description
A switch statement
switch (Math.floor(Math.random()) * 10) {
case 1:
break;
case 2:
case 3:
case 4:
return false;
default:
return true;
}
Fields
discriminant: Expression
cases: Vec<SwitchCase>
Trait Implementations
sourceimpl Clone for SwitchStatement
impl Clone for SwitchStatement
sourcefn clone(&self) -> SwitchStatement
fn clone(&self) -> SwitchStatement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SwitchStatement
impl Debug for SwitchStatement
sourceimpl PartialEq<SwitchStatement> for SwitchStatement
impl PartialEq<SwitchStatement> for SwitchStatement
sourcefn eq(&self, other: &SwitchStatement) -> bool
fn eq(&self, other: &SwitchStatement) -> bool
impl StructuralPartialEq for SwitchStatement
Auto Trait Implementations
impl RefUnwindSafe for SwitchStatement
impl Send for SwitchStatement
impl Sync for SwitchStatement
impl Unpin for SwitchStatement
impl UnwindSafe for SwitchStatement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more