• nick
    link
    fedilink
    6
    edit-2
    7 months ago

    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.

    • @MajorHavoc
      link
      47 months ago

      Thank you. I’ll check it out next time.