On this page
Trait std::marker::FnPtr
pub trait FnPtr: Copy + Clone {
// Required method
fn addr(self) -> *const ();
}
🔬This is a nightly-only experimental API. (
fn_ptr_trait
)
A common trait implemented by all function pointers.
Required Methods
fn addr(self) -> *const ()
🔬This is a nightly-only experimental API. (
fn_ptr_trait
)
Returns the address of the function pointer.
Object Safety
This trait is not object safe.
Implementors
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/marker/trait.FnPtr.html