Enum rustpython_ast::CmpOp
source · pub enum CmpOp {
Eq,
NotEq,
Lt,
LtE,
Gt,
GtE,
Is,
IsNot,
In,
NotIn,
}
Expand description
See also cmpop
Variants§
Implementations§
source§impl CmpOp
impl CmpOp
pub const fn cmp_op_eq(&self) -> Option<CmpOpEq>
pub const fn cmp_op_not_eq(&self) -> Option<CmpOpNotEq>
pub const fn cmp_op_lt(&self) -> Option<CmpOpLt>
pub const fn cmp_op_lt_e(&self) -> Option<CmpOpLtE>
pub const fn cmp_op_gt(&self) -> Option<CmpOpGt>
pub const fn cmp_op_gt_e(&self) -> Option<CmpOpGtE>
pub const fn cmp_op_is(&self) -> Option<CmpOpIs>
pub const fn cmp_op_is_not(&self) -> Option<CmpOpIsNot>
pub const fn cmp_op_in(&self) -> Option<CmpOpIn>
pub const fn cmp_op_not_in(&self) -> Option<CmpOpNotIn>
Trait Implementations§
source§impl From<CmpOpIsNot> for CmpOp
impl From<CmpOpIsNot> for CmpOp
source§fn from(_: CmpOpIsNot) -> Self
fn from(_: CmpOpIsNot) -> Self
Converts to this type from the input type.
source§impl From<CmpOpNotEq> for CmpOp
impl From<CmpOpNotEq> for CmpOp
source§fn from(_: CmpOpNotEq) -> Self
fn from(_: CmpOpNotEq) -> Self
Converts to this type from the input type.
source§impl From<CmpOpNotIn> for CmpOp
impl From<CmpOpNotIn> for CmpOp
source§fn from(_: CmpOpNotIn) -> Self
fn from(_: CmpOpNotIn) -> Self
Converts to this type from the input type.
source§impl PartialEq<CmpOp> for CmpOpIsNot
impl PartialEq<CmpOp> for CmpOpIsNot
source§impl PartialEq<CmpOp> for CmpOpNotEq
impl PartialEq<CmpOp> for CmpOpNotEq
source§impl PartialEq<CmpOp> for CmpOpNotIn
impl PartialEq<CmpOp> for CmpOpNotIn
impl Copy for CmpOp
impl Eq for CmpOp
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> 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more