pub enum BinaryKind {
Add,
Subtract,
Multiply,
Divide,
Modulo,
Equal,
NotEqual,
Greater,
GreaterOrEqual,
Less,
LessOrEqual,
}Expand description
The binary operator a fused superinstruction applies
(docs/optimizer-peephole.md §1). One byte on the wire; the mnemonic is
what .inkt prints. Exactly the operators that have a plain two-operand
opcode of their own — a fused form is always spelled out as that opcode
preceded by PushInt and/or followed by JumpIfFalse.
Variants§
Implementations§
Source§impl BinaryKind
impl BinaryKind
Sourcepub fn from_mnemonic(s: &str) -> Option<Self>
pub fn from_mnemonic(s: &str) -> Option<Self>
Inverse of mnemonic.
Trait Implementations§
Source§impl Clone for BinaryKind
impl Clone for BinaryKind
Source§fn clone(&self) -> BinaryKind
fn clone(&self) -> BinaryKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BinaryKind
Source§impl Debug for BinaryKind
impl Debug for BinaryKind
impl Eq for BinaryKind
Source§impl Hash for BinaryKind
impl Hash for BinaryKind
Source§impl PartialEq for BinaryKind
impl PartialEq for BinaryKind
impl StructuralPartialEq for BinaryKind
Auto Trait Implementations§
impl Freeze for BinaryKind
impl RefUnwindSafe for BinaryKind
impl Send for BinaryKind
impl Sync for BinaryKind
impl Unpin for BinaryKind
impl UnsafeUnpin for BinaryKind
impl UnwindSafe for BinaryKind
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