Struct resast::stmt::SwitchCase [−][src]
pub struct SwitchCase<'a> {
pub test: Option<Expr<'a>>,
pub consequent: Vec<ProgramPart<'a>>,
}
Expand description
A single case part of a switch statement
Fields
test: Option<Expr<'a>>
consequent: Vec<ProgramPart<'a>>
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SwitchCase<'a>
impl<'a> Send for SwitchCase<'a>
impl<'a> Sync for SwitchCase<'a>
impl<'a> Unpin for SwitchCase<'a>
impl<'a> UnwindSafe for SwitchCase<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more