pub enum CmpOp {
    Eq,
    NotEq,
    Lt,
    LtE,
    Gt,
    GtE,
    Is,
    IsNot,
    In,
    NotIn,
}
Expand description

See also cmpop

Variants§

§

Eq

§

NotEq

§

Lt

§

LtE

§

Gt

§

GtE

§

Is

§

IsNot

§

In

§

NotIn

Implementations§

source§

impl CmpOp

source

pub fn as_str(&self) -> &'static str

source§

impl CmpOp

source

pub const fn is_eq(&self) -> bool

Returns true if self is of variant Eq.

source

pub const fn is_not_eq(&self) -> bool

Returns true if self is of variant NotEq.

source

pub const fn is_lt(&self) -> bool

Returns true if self is of variant Lt.

source

pub const fn is_lt_e(&self) -> bool

Returns true if self is of variant LtE.

source

pub const fn is_gt(&self) -> bool

Returns true if self is of variant Gt.

source

pub const fn is_gt_e(&self) -> bool

Returns true if self is of variant GtE.

source

pub const fn is_is(&self) -> bool

Returns true if self is of variant Is.

source

pub const fn is_is_not(&self) -> bool

Returns true if self is of variant IsNot.

source

pub const fn is_in(&self) -> bool

Returns true if self is of variant In.

source

pub const fn is_not_in(&self) -> bool

Returns true if self is of variant NotIn.

source§

impl CmpOp

source

pub const fn cmp_op_eq(&self) -> Option<CmpOpEq>

source

pub const fn cmp_op_not_eq(&self) -> Option<CmpOpNotEq>

source

pub const fn cmp_op_lt(&self) -> Option<CmpOpLt>

source

pub const fn cmp_op_lt_e(&self) -> Option<CmpOpLtE>

source

pub const fn cmp_op_gt(&self) -> Option<CmpOpGt>

source

pub const fn cmp_op_gt_e(&self) -> Option<CmpOpGtE>

source

pub const fn cmp_op_is(&self) -> Option<CmpOpIs>

source

pub const fn cmp_op_is_not(&self) -> Option<CmpOpIsNot>

source

pub const fn cmp_op_in(&self) -> Option<CmpOpIn>

source

pub const fn cmp_op_not_in(&self) -> Option<CmpOpNotIn>

Trait Implementations§

source§

impl Clone for CmpOp

source§

fn clone(&self) -> CmpOp

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CmpOp

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T, U> Foldable<T, U> for CmpOp

§

type Mapped = CmpOp

source§

fn fold<F: Fold<T, TargetU = U> + ?Sized>( self, folder: &mut F ) -> Result<Self::Mapped, F::Error>

source§

impl<R> From<CmpOp> for Ast<R>

source§

fn from(node: CmpOp) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpEq> for CmpOp

source§

fn from(_: CmpOpEq) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpGt> for CmpOp

source§

fn from(_: CmpOpGt) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpGtE> for CmpOp

source§

fn from(_: CmpOpGtE) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpIn> for CmpOp

source§

fn from(_: CmpOpIn) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpIs> for CmpOp

source§

fn from(_: CmpOpIs) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpIsNot> for CmpOp

source§

fn from(_: CmpOpIsNot) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpLt> for CmpOp

source§

fn from(_: CmpOpLt) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpLtE> for CmpOp

source§

fn from(_: CmpOpLtE) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpNotEq> for CmpOp

source§

fn from(_: CmpOpNotEq) -> Self

Converts to this type from the input type.
source§

impl From<CmpOpNotIn> for CmpOp

source§

fn from(_: CmpOpNotIn) -> Self

Converts to this type from the input type.
source§

impl Hash for CmpOp

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Node for CmpOp

source§

const NAME: &'static str = "cmpop"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl PartialEq<CmpOp> for CmpOpEq

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpGt

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpGtE

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpIn

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpIs

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpIsNot

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpLt

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpLtE

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpNotEq

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<CmpOp> for CmpOpNotIn

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for CmpOp

source§

fn eq(&self, other: &CmpOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for CmpOp

source§

impl Eq for CmpOp

source§

impl StructuralPartialEq for CmpOp

Auto Trait Implementations§

§

impl Freeze for CmpOp

§

impl RefUnwindSafe for CmpOp

§

impl Send for CmpOp

§

impl Sync for CmpOp

§

impl Unpin for CmpOp

§

impl UnwindSafe for CmpOp

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T, U> ExactFrom<T> for U
where U: TryFrom<T>,

source§

fn exact_from(value: T) -> U

source§

impl<T, U> ExactInto<U> for T
where U: ExactFrom<T>,

source§

fn exact_into(self) -> U

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> OverflowingInto<U> for T
where U: OverflowingFrom<T>,

source§

impl<T, U> RoundingInto<U> for T
where U: RoundingFrom<T>,

source§

impl<T, U> SaturatingInto<U> for T
where U: SaturatingFrom<T>,

source§

impl<T> ToDebugString for T
where T: Debug,

source§

fn to_debug_string(&self) -> String

Returns the String produced by Ts Debug implementation.

§Examples
use malachite_base::strings::ToDebugString;

assert_eq!([1, 2, 3].to_debug_string(), "[1, 2, 3]");
assert_eq!(
    [vec![2, 3], vec![], vec![4]].to_debug_string(),
    "[[2, 3], [], [4]]"
);
assert_eq!(Some(5).to_debug_string(), "Some(5)");
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, U> WrappingInto<U> for T
where U: WrappingFrom<T>,

source§

fn wrapping_into(self) -> U