Construct a enum expression with casting
(&self)
| 135 | |
| 136 | /// Construct a enum expression with casting |
| 137 | fn as_enum(&self) -> SimpleExpr { |
| 138 | Expr::val(Self::to_value(self)).as_enum(Self::name()) |
| 139 | } |
| 140 | |
| 141 | /// Get the name of all enum variants |
| 142 | fn values() -> Vec<Self::Value> { |