pub trait Pointer {
// Required method
fn fmt(&self, f: &mut Formatter<'_>) -> Result;
}Expand description
A copy of core::fmt::Pointer that allows implementing pointer formatting for foreign types.
Together with the [Adapter] type and fmt! macro, it enables raw pointer formatting to be
intercepted and routed to HashedPtr (kernel’s %p hashed format), preventing kernel address
leaks.
Required Methods§
Sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Same as core::fmt::Pointer::fmt.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".