Ответсообщение недоступно
It's possible.
But as I showed in selected text we cannot hardcode the pointer inside buffer because with PIE enabled, the address is not known until linked.
Rust uses different approach and stores the global var with actual payload type, so they never convert pointers, but convert other values (e.g. integer, struct, ...) to bytes.
Why I can't do the same thing easily? Because it becomes very painful when loading enum value in runtime. We have to keep track of payload kind, that it's a buffer? or actual payload type...