Enum leo_ast::statement::assert::AssertVariant
source · pub enum AssertVariant {
Assert(Expression),
AssertEq(Expression, Expression),
AssertNeq(Expression, Expression),
}Expand description
A variant of an assert statement.
Variants§
Assert(Expression)
A assert(expr) variant, asserting that the expression evaluates to true.
AssertEq(Expression, Expression)
A assert_eq(expr1, expr2) variant, asserting that the operands are equal.
AssertNeq(Expression, Expression)
A assert_neq(expr1, expr2) variant, asserting that the operands are not equal.
Trait Implementations§
source§impl Clone for AssertVariant
impl Clone for AssertVariant
source§fn clone(&self) -> AssertVariant
fn clone(&self) -> AssertVariant
Returns a copy of the value. Read more
1.0.0 · 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 AssertVariant
impl Debug for AssertVariant
source§impl<'de> Deserialize<'de> for AssertVariant
impl<'de> Deserialize<'de> for AssertVariant
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
source§impl PartialEq for AssertVariant
impl PartialEq for AssertVariant
source§fn eq(&self, other: &AssertVariant) -> bool
fn eq(&self, other: &AssertVariant) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AssertVariant
impl Serialize for AssertVariant
impl Eq for AssertVariant
impl StructuralEq for AssertVariant
impl StructuralPartialEq for AssertVariant
Auto Trait Implementations§
impl RefUnwindSafe for AssertVariant
impl Send for AssertVariant
impl Sync for AssertVariant
impl Unpin for AssertVariant
impl UnwindSafe for AssertVariant
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.