pub const fn ptr_metadata<P, M>(ptr: *const P) -> Mwhere
P: Pointee<Metadata = M> + ?Sized,
core_intrinsics)
Lowers in MIR to Rvalue::UnaryOp with UnOp::PtrMetadata.
This is used to implement functions like ptr::metadata.
© 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/intrinsics/fn.ptr_metadata.html