Function core::fmt::pointer_fmt_inner
source · pub(crate) fn pointer_fmt_inner(
ptr_addr: usize,
f: &mut Formatter<'_>
) -> ResultExpand description
Since the formatting will be identical for all pointer types, use a non-monomorphized implementation for the actual formatting to reduce the amount of codegen work needed.
This uses ptr_addr: usize and not ptr: *const () to be able to use this for
fn(...) -> ... without using problematic “Oxford Casts”.