Klaymore@sh.itjust.works to Programmer Humor@programming.devEnglish · 6 个月前Happens all the timesh.itjust.worksimagemessage-square22fedilinkarrow-up1521arrow-down17
arrow-up1514arrow-down1imageHappens all the timesh.itjust.worksKlaymore@sh.itjust.works to Programmer Humor@programming.devEnglish · 6 个月前message-square22fedilink
minus-squareParanoiaComplex@lemmy.worldlinkfedilinkarrow-up10arrow-down1·edit-26 个月前I don’t know Rust but jump typically moves the program counter, where the height represents the number of instructions to move
minus-squaretrxxruraxvr@lemmy.worldlinkfedilinkarrow-up14·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.
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up14·6 个月前They created it. The compiler says the jump function is in src/main.rs
I don’t know Rust but jump typically moves the program counter, where the height represents the number of instructions to move
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.
They created it. The compiler says the jump function is in src/main.rs