pub enum OpKind {
Binary,
Nary,
Ternary,
Unary,
}Expand description
Auto-generated discriminant enum variants
Variants§
Implementations§
Source§impl OpKind
impl OpKind
Sourcepub const fn is_binary(&self) -> bool
pub const fn is_binary(&self) -> bool
Returns true if the enum is OpKind::Binary otherwise false
Sourcepub const fn is_ternary(&self) -> bool
pub const fn is_ternary(&self) -> bool
Returns true if the enum is OpKind::Ternary otherwise false
Source§impl OpKind
impl OpKind
pub fn from_type(op: impl OperandType) -> Self
pub fn optype(&self) -> Box<dyn OperandType>
Trait Implementations§
impl Copy for OpKind
Source§impl<'de> Deserialize<'de> for OpKind
impl<'de> Deserialize<'de> for OpKind
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 OpKind
Source§impl IntoEnumIterator for OpKind
impl IntoEnumIterator for OpKind
type Iterator = OpKindIter
fn iter() -> OpKindIter ⓘ
Source§impl Ord for OpKind
impl Ord for OpKind
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 OpKind
impl PartialOrd for OpKind
impl StructuralPartialEq for OpKind
Auto Trait Implementations§
impl Freeze for OpKind
impl RefUnwindSafe for OpKind
impl Send for OpKind
impl Sync for OpKind
impl Unpin for OpKind
impl UnsafeUnpin for OpKind
impl UnwindSafe for OpKind
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