Enum acme_graphs::ops::Operations
source · #[repr(u8)]pub enum Operations {
Binary(BinaryExpr),
Compare(CompareExpr),
Unary(UnaryExpr),
Custom {
name: String,
},
}Variants§
Implementations§
source§impl Operations
impl Operations
sourcepub const fn is_binary(&self) -> bool
pub const fn is_binary(&self) -> bool
Returns true if the enum is Operations::Binary otherwise false
sourcepub const fn is_compare(&self) -> bool
pub const fn is_compare(&self) -> bool
Returns true if the enum is Operations::Compare otherwise false
source§impl Operations
impl Operations
sourcepub fn binary(op: BinaryExpr) -> Self
pub fn binary(op: BinaryExpr) -> Self
A functional constructor for [Ops::Binary]
sourcepub fn compare(op: CompareExpr) -> Self
pub fn compare(op: CompareExpr) -> Self
A functional constructor for [Ops::Compare]
Trait Implementations§
source§impl Clone for Operations
impl Clone for Operations
source§fn clone(&self) -> Operations
fn clone(&self) -> Operations
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 Operations
impl Debug for Operations
source§impl Default for Operations
impl Default for Operations
source§impl<'de> Deserialize<'de> for Operations
impl<'de> Deserialize<'de> for Operations
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 Operations
impl Display for Operations
source§impl From<BinaryExpr> for Operations
impl From<BinaryExpr> for Operations
source§fn from(op: BinaryExpr) -> Self
fn from(op: BinaryExpr) -> Self
Converts to this type from the input type.
source§impl From<CompareExpr> for Operations
impl From<CompareExpr> for Operations
source§fn from(op: CompareExpr) -> Self
fn from(op: CompareExpr) -> Self
Converts to this type from the input type.
source§impl From<UnaryExpr> for Operations
impl From<UnaryExpr> for Operations
source§impl Hash for Operations
impl Hash for Operations
source§impl IntoEnumIterator for Operations
impl IntoEnumIterator for Operations
type Iterator = OperationsIter
fn iter() -> OperationsIter ⓘ
source§impl Ord for Operations
impl Ord for Operations
source§fn cmp(&self, other: &Operations) -> Ordering
fn cmp(&self, other: &Operations) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Operations
impl PartialEq for Operations
source§fn eq(&self, other: &Operations) -> bool
fn eq(&self, other: &Operations) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Operations
impl PartialOrd for Operations
source§fn partial_cmp(&self, other: &Operations) -> Option<Ordering>
fn partial_cmp(&self, other: &Operations) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for Operations
impl Serialize for Operations
source§impl VariantNames for Operations
impl VariantNames for Operations
impl Eq for Operations
impl StructuralPartialEq for Operations
Auto Trait Implementations§
impl Freeze for Operations
impl RefUnwindSafe for Operations
impl Send for Operations
impl Sync for Operations
impl Unpin for Operations
impl UnwindSafe for Operations
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.