Trait core::marker::FnPtr

source ·
pub trait FnPtr: Copy + Clone {
    // Required method
    fn addr(self) -> *const ();
}
🔬This is a nightly-only experimental API. (fn_ptr_trait)
Expand description

由所有函数指针实现的公共 trait。

Required Methods§

source

fn addr(self) -> *const ()

🔬This is a nightly-only experimental API. (fn_ptr_trait)

返回函数指针的地址。

Implementors§