• nothacking
    link
    fedilink
    arrow-up
    4
    ·
    vor 1 Jahr

    Same for C, & yields a pointer to a value, and * allows you to access the data. (For rust people, a pointer is like a reference with looser type checking)

      • nothacking
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        vor 1 Jahr

        I doubt many people have ever use that or any of the other low level memory API. The main appeal of rust is not having to do that.

        • Aloso@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          vor 1 Jahr

          Sure, but raw pointers and unsafe Rust are still covered in the official learning material, so I assume that most Rust devs know about raw pointers.