Klaymore@sh.itjust.works to Programmer Humor@programming.devEnglish · 5 months agoHappens all the timesh.itjust.worksimagemessage-square20fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageHappens all the timesh.itjust.worksKlaymore@sh.itjust.works to Programmer Humor@programming.devEnglish · 5 months agomessage-square20fedilink
minus-squareParanoiaComplex@lemmy.worldlinkfedilinkarrow-up0·edit-25 months agoI 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-up0·5 months agoAfaik 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-up0·5 months agoThey created it. The compiler says the jump function is in src/main.rs
Height should be a float
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
It’s height in centimeters
Chad quantised rust