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§
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
Source§impl IntoEnumIterator for OpKind
impl IntoEnumIterator for OpKind
type Iterator = OpKindIter
fn iter() -> OpKindIter ⓘ
Source§impl Ord for OpKind
impl Ord for OpKind
Source§impl PartialOrd for OpKind
impl PartialOrd for OpKind
Source§impl VariantNames for OpKind
impl VariantNames for OpKind
impl Copy for OpKind
impl Eq 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 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