Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 年前Is this a Nut?media.gehirneimer.deimagemessage-square129fedilinkarrow-up11.3Karrow-down120
arrow-up11.28Karrow-down1imageIs this a Nut?media.gehirneimer.deSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 年前message-square129fedilink
minus-squarenickAlinkfedilinkarrow-up6·edit-23 年前That flag exists, it’s called unsafe for if you need to tell the borrow checker to trust you or unwrap if you don’t want to deal with handling errors on most ADTs. You can always cast anything to an unmanaged pointer type and use it in unsafe code.
minus-squareMajorHavoc@programming.devlinkfedilinkarrow-up4·3 年前Thank you. I’ll check it out next time.
That flag exists, it’s called
unsafefor if you need to tell the borrow checker to trust you orunwrapif you don’t want to deal with handling errors on most ADTs.You can always cast anything to an unmanaged pointer type and use it in unsafe code.
Thank you. I’ll check it out next time.