Struct ressa::node::SwitchCase
source · pub struct SwitchCase {
pub test: Option<Expression>,
pub consequent: Vec<ProgramPart>,
}
Expand description
A single case part of a switch statement
Fields
test: Option<Expression>
consequent: Vec<ProgramPart>
Trait Implementations
sourceimpl Clone for SwitchCase
impl Clone for SwitchCase
sourcefn clone(&self) -> SwitchCase
fn clone(&self) -> SwitchCase
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 SwitchCase
impl Debug for SwitchCase
sourceimpl PartialEq<SwitchCase> for SwitchCase
impl PartialEq<SwitchCase> for SwitchCase
sourcefn eq(&self, other: &SwitchCase) -> bool
fn eq(&self, other: &SwitchCase) -> bool
impl StructuralPartialEq for SwitchCase
Auto Trait Implementations
impl RefUnwindSafe for SwitchCase
impl Send for SwitchCase
impl Sync for SwitchCase
impl Unpin for SwitchCase
impl UnwindSafe for SwitchCase
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