I have tried using raw pointer casts, like my_struct as *const usize, but this results in a non-scalar cast error. Raw pointers seem to work fine when finding the address of primitives, but not custom structs.
I have tried using raw pointer casts, like my_struct as *const usize, but this results in a non-scalar cast error. Raw pointers seem to work fine when finding the address of primitives, but not custom structs.