6 ms·
Constructing a map (an opaque type) just so you cast it to a carefully duplicated struct so you can steal the function pointer is kinda nutso. Did you look at
by tedunangst 3y ago
Constructing a map (an opaque type) just so you cast it to a carefully duplicated struct so you can steal the function pointer is kinda nutso.
Did you look at the linked code in maphash?