• ParanoiaComplex@lemmy.world
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    6 个月前

    I don’t know Rust but jump typically moves the program counter, where the height represents the number of instructions to move

    • trxxruraxvr@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      6 个月前

      Afaik rust doesn’t have functions like that as they lead to unsafe code that’s impossible to check variable lifetimes for. I think OP created the jump function.