Struct sqparse::ast::SwitchCase
source · pub struct SwitchCase<'s> {
pub condition: SwitchCaseCondition<'s>,
pub colon: &'s Token<'s>,
pub body: Vec<Statement<'s>>,
}Expand description
Case block in a SwitchStatement.
Grammar: SwitchCaseCondition : Statement*
Fields§
§condition: SwitchCaseCondition<'s>§colon: &'s Token<'s>§body: Vec<Statement<'s>>Trait Implementations§
source§impl<'s> Clone for SwitchCase<'s>
impl<'s> Clone for SwitchCase<'s>
source§fn clone(&self) -> SwitchCase<'s>
fn clone(&self) -> SwitchCase<'s>
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 more