Skip to main content

pointer_fmt_inner

Function pointer_fmt_inner 

Source
pub(crate) fn pointer_fmt_inner(
    ptr_addr: usize,
    f: &mut Formatter<'_>,
) -> Result
Expand description

Formats an address in fmt::Pointer style.

This uses ptr_addr: usize and not ptr: *const () to be able to use this for fn(...) -> ... without using problematic “Oxford Casts”.