Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agoIs this a Nut?media.gehirneimer.deimagemessage-square105fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageIs this a Nut?media.gehirneimer.deSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agomessage-square105fedilink
minus-squarenick@campfyre.nickwebster.devlinkfedilinkarrow-up0·edit-28 months agoThat 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-up0·8 months agoThank you. I’ll check it out next time.
That flag exists, it’s called
unsafe
for if you need to tell the borrow checker to trust you orunwrap
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.
Thank you. I’ll check it out next time.