pub enum Op {
Binary(BinaryOp),
Nary(NaryOp),
Ternary(TernaryOp),
Unary(UnaryOp),
}Variants§
Implementations§
Source§impl Op
impl Op
Sourcepub const fn is_ternary(&self) -> bool
pub const fn is_ternary(&self) -> bool
Returns true if the enum is Op::Ternary otherwise false
Trait Implementations§
impl Copy for Op
Source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
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
impl Eq for Op
Source§impl IntoDiscriminant for Op
impl IntoDiscriminant for Op
Source§type Discriminant = OpKind
type Discriminant = OpKind
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl Ord for Op
impl Ord for Op
1.21.0 (const: unstable) · 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 PartialOrd for Op
impl PartialOrd for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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