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§
Source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Op, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Op, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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) -> <Op as IntoDiscriminant>::Discriminant
Source§impl Ord for Op
impl Ord for Op
Source§impl PartialOrd for Op
impl PartialOrd for Op
Source§impl Serialize for Op
impl Serialize for Op
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl VariantNames for Op
impl VariantNames for Op
impl Copy for Op
impl Eq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.