pub enum Comparison {
Lower(BinaryOperator),
LowerEqual(BinaryOperator),
Equal(BinaryOperator),
NotEqual(BinaryOperator),
GreaterEqual(BinaryOperator),
Greater(BinaryOperator),
}
Expand description
Comparison operations
Variants§
Lower(BinaryOperator)
LowerEqual(BinaryOperator)
Equal(BinaryOperator)
NotEqual(BinaryOperator)
GreaterEqual(BinaryOperator)
Greater(BinaryOperator)
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
Returns a duplicate 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 Comparison
impl Debug for Comparison
Source§impl<'de> Deserialize<'de> for Comparison
impl<'de> Deserialize<'de> for Comparison
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 Display for Comparison
impl Display for Comparison
Source§impl From<<Comparison as OperationReflect>::OpCode> for OpCode
impl From<<Comparison as OperationReflect>::OpCode> for OpCode
Source§fn from(value: <Comparison as OperationReflect>::OpCode) -> Self
fn from(value: <Comparison as OperationReflect>::OpCode) -> Self
Converts to this type from the input type.
Source§impl From<Comparison> for Operation
impl From<Comparison> for Operation
Source§fn from(value: Comparison) -> Self
fn from(value: Comparison) -> Self
Converts to this type from the input type.
Source§impl Hash for Comparison
impl Hash for Comparison
Source§impl OperationReflect for Comparison
impl OperationReflect for Comparison
Source§type OpCode = ComparisonOpCode
type OpCode = ComparisonOpCode
Type of the op codes for this operation
Source§fn args(&self) -> Option<Vec<Variable>>
fn args(&self) -> Option<Vec<Variable>>
Get the list of arguments for this operation. If not all arguments are
Variable
, returns
None
instead.Source§fn from_code_and_args(op_code: Self::OpCode, args: &[Variable]) -> Option<Self>
fn from_code_and_args(op_code: Self::OpCode, args: &[Variable]) -> Option<Self>
Create typed operation from an opcode and a list of arguments. Returns
None
if not all
arguments are Variable
.Source§fn is_commutative(&self) -> bool
fn is_commutative(&self) -> bool
Whether this operation is commutative (arguments can be freely reordered). Ignored for
single argument operations.
Source§impl PartialEq for Comparison
impl PartialEq for Comparison
Source§impl Serialize for Comparison
impl Serialize for Comparison
Source§impl TypeHash for Comparison
impl TypeHash for Comparison
impl Eq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnwindSafe for Comparison
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.