| 843 | /// ``` |
| 844 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Hash)] |
| 845 | pub struct Case { |
| 846 | /// Optional base expression that can be compared to literal values in the "when" expressions |
| 847 | pub expr: Option<Box<Expr>>, |
| 848 | /// One or more when/then expressions |
| 849 | pub when_then_expr: Vec<(Box<Expr>, Box<Expr>)>, |
| 850 | /// Optional "else" expression |
| 851 | pub else_expr: Option<Box<Expr>>, |
| 852 | } |
| 853 | |
| 854 | impl Case { |
| 855 | /// Create a new Case expression |
no outgoing calls
searching dependent graphs…