pub struct CaseStmt {
pub expr: Expr,
pub branches: Vec<CaseBranch>,
}Expand description
Case statement for pattern matching.
case $VAR in
pattern1) commands ;;
pattern2|pattern3) commands ;;
*) default ;;
esacFields§
§expr: ExprThe expression to match against
branches: Vec<CaseBranch>The pattern branches
Trait Implementations§
impl StructuralPartialEq for CaseStmt
Auto Trait Implementations§
impl Freeze for CaseStmt
impl RefUnwindSafe for CaseStmt
impl Send for CaseStmt
impl Sync for CaseStmt
impl Unpin for CaseStmt
impl UnwindSafe for CaseStmt
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