pub enum Expr {
Ternary {
condition: Box<AstNode<ConditionalOr>>,
true_clause: Box<AstNode<ConditionalOr>>,
false_clause: Box<AstNode<Self>>,
},
Match {
condition: Box<AstNode<Expr>>,
cases: Vec<AstNode<MatchCase>>,
},
Unary(Box<AstNode<ConditionalOr>>),
}Variants§
Ternary
Match
Unary(Box<AstNode<ConditionalOr>>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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