In Rust, why `void*` is `*mut c_void` not `*mut ()`? Could I use `*mut ()` to represent a `void*` address safely?

前端 未结 0 709
粉色の甜心
粉色の甜心 2020-12-07 00:16

In rust, void is (), but void* is a pointer of an enum

#[repr(u8)]
#[stable(feature = "core_c_void", since = "1.30.0&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题