为什么会 st:在已知两种类型的记忆完全相同的情况下,转播不成工作?
原文:Why does std::mem::transmute not work when both types are known to have the exact same memory layout?
原文:Why does std::mem::transmute not work when both types are known to have the exact same memory layout?
Let me preface with saying that I m actively looking into other options than transmute, I was just suprised that transmute doesn t compile in this case. I m working on a Builder derive library, that ...