I would like to make a struct non-copyable, but I cannot seem to get how to do that in Zig (if possible). I had a look at proposals about "pinned" and other related concepts, but nothing made it in the language as far as I know. What would be a good approach?
Note: to prevent some xy problem situation, what I'm really trying to do is follow a "building a debugger" book which uses c++. At some point, you create a simple struct representing a process, with a single field for its pid. And you don't want any instance of it to be copied. In c++ you would for instance set all constructors as private and require the user to create unique_ptr of your object. What do you recommand in Zig?