Docs.rs
  • hrm_interpreter-0.2.0
    • hrm_interpreter 0.2.0
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • crates.io
    • Source
    • Owners
    • alfateam123
    • Dependencies
      • clap ^2.27 normal
      • serde ^1.0 normal
      • serde_derive ^1.0 normal
      • serde_json ^1.0.5 normal
    • Versions
    • 0% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

hrm_interpreter0.2.0

Operator

Required Methods

  • apply_to
  • changes_instruction_counter

Implementors

In hrm_interpreter::operators

hrm_interpreter::operators

Trait Operator

Source
pub trait Operator {
    // Required methods
    fn apply_to(&self, s: &mut InternalState) -> Result<(), String>;
    fn changes_instruction_counter(&self) -> bool;
}

Required Methods§

Source

fn apply_to(&self, s: &mut InternalState) -> Result<(), String>

Source

fn changes_instruction_counter(&self) -> bool

Implementors§

Source§

impl Operator for AddOp

Source§

impl Operator for BumpMinusOp

Source§

impl Operator for BumpPlusOp

Source§

impl Operator for CopyFromOp

Source§

impl Operator for CopyToOp

Source§

impl Operator for InboxOp

Source§

impl Operator for JumpEqualsZeroOp

Source§

impl Operator for JumpNegativeOp

Source§

impl Operator for JumpOp

Source§

impl Operator for LabelOp

Source§

impl Operator for OutboxOp

Source§

impl Operator for SubOp