pub enum AssertionExpr {
Binary {
op: BinaryOp,
left: Box<AssertionExpr>,
right: Box<AssertionExpr>,
},
Not(Box<AssertionExpr>),
NotNot(Box<AssertionExpr>),
And {
left: Box<AssertionExpr>,
right: Box<AssertionExpr>,
},
Or {
left: Box<AssertionExpr>,
right: Box<AssertionExpr>,
},
Xor {
left: Box<AssertionExpr>,
right: Box<AssertionExpr>,
},
IfThenElse {
condition: Box<AssertionExpr>,
then_branch: Box<AssertionExpr>,
else_branch: Box<AssertionExpr>,
},
Paren(Box<AssertionExpr>),
Atom(Expr),
Raw(String),
}Expand description
A complete assertion expression (top-level).
Variants§
Binary
Not(Box<AssertionExpr>)
NotNot(Box<AssertionExpr>)
And
Or
Xor
IfThenElse
Fields
§
condition: Box<AssertionExpr>§
then_branch: Box<AssertionExpr>§
else_branch: Box<AssertionExpr>Paren(Box<AssertionExpr>)
Atom(Expr)
Raw(String)
Trait Implementations§
Source§impl Clone for AssertionExpr
impl Clone for AssertionExpr
Source§fn clone(&self) -> AssertionExpr
fn clone(&self) -> AssertionExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssertionExpr
impl Debug for AssertionExpr
Source§impl<'de> Deserialize<'de> for AssertionExpr
impl<'de> Deserialize<'de> for AssertionExpr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssertionExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssertionExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AssertionExpr
impl Display for AssertionExpr
Source§impl PartialEq for AssertionExpr
impl PartialEq for AssertionExpr
Source§impl Serialize for AssertionExpr
impl Serialize for AssertionExpr
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AssertionExpr
Auto Trait Implementations§
impl Freeze for AssertionExpr
impl RefUnwindSafe for AssertionExpr
impl Send for AssertionExpr
impl Sync for AssertionExpr
impl Unpin for AssertionExpr
impl UnsafeUnpin for AssertionExpr
impl UnwindSafe for AssertionExpr
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