Function ptr_metadata

pub const fn ptr_metadata<P: Pointee<Metadata = M> + PointeeSized, M>(ptr: *const P) -> M

Lowers in MIR to Rvalue::UnaryOp with UnOp::PtrMetadata.

This is used to implement functions like ptr::metadata.