Enum acme_graphs::ops::BinaryExpr
source · #[repr(u8)]pub enum BinaryExpr {
Add(Addition),
Div(Division),
Maximum,
Minimum,
Mul(Multiplication),
Sub(Subtraction),
}Variants§
Implementations§
source§impl BinaryExpr
impl BinaryExpr
sourcepub const fn is_maximum(&self) -> bool
pub const fn is_maximum(&self) -> bool
Returns true if the enum is BinaryExpr::Maximum otherwise false
sourcepub const fn is_minimum(&self) -> bool
pub const fn is_minimum(&self) -> bool
Returns true if the enum is BinaryExpr::Minimum otherwise false
Trait Implementations§
source§impl<T> BinOp<T> for BinaryExpr
impl<T> BinOp<T> for BinaryExpr
source§impl Clone for BinaryExpr
impl Clone for BinaryExpr
source§fn clone(&self) -> BinaryExpr
fn clone(&self) -> BinaryExpr
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 BinaryExpr
impl Debug for BinaryExpr
source§impl Default for BinaryExpr
impl Default for BinaryExpr
source§impl<'de> Deserialize<'de> for BinaryExpr
impl<'de> Deserialize<'de> for BinaryExpr
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 BinaryExpr
impl Display for BinaryExpr
source§impl From<Addition> for BinaryExpr
impl From<Addition> for BinaryExpr
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<Division> for BinaryExpr
impl From<Division> for BinaryExpr
source§impl Hash for BinaryExpr
impl Hash for BinaryExpr
source§impl IntoEnumIterator for BinaryExpr
impl IntoEnumIterator for BinaryExpr
type Iterator = BinaryExprIter
fn iter() -> BinaryExprIter ⓘ
source§impl Ord for BinaryExpr
impl Ord for BinaryExpr
source§fn cmp(&self, other: &BinaryExpr) -> Ordering
fn cmp(&self, other: &BinaryExpr) -> 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 BinaryExpr
impl PartialEq for BinaryExpr
source§fn eq(&self, other: &BinaryExpr) -> bool
fn eq(&self, other: &BinaryExpr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for BinaryExpr
impl PartialOrd for BinaryExpr
source§fn partial_cmp(&self, other: &BinaryExpr) -> Option<Ordering>
fn partial_cmp(&self, other: &BinaryExpr) -> 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 BinaryExpr
impl Serialize for BinaryExpr
source§impl VariantNames for BinaryExpr
impl VariantNames for BinaryExpr
impl Copy for BinaryExpr
impl Eq for BinaryExpr
impl StructuralPartialEq for BinaryExpr
Auto Trait Implementations§
impl Freeze for BinaryExpr
impl RefUnwindSafe for BinaryExpr
impl Send for BinaryExpr
impl Sync for BinaryExpr
impl Unpin for BinaryExpr
impl UnwindSafe for BinaryExpr
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.