Function static_metadata

Source
pub const fn static_metadata<S, T: ?Sized>() -> <T as Pointee>::Metadata
where S: Unsize<T>,
Available on crate feature ptr_metadata only.
Expand description

Returns Pointee metadata for provided pair of struct S and some unsized type (e.g. a trait) T.

This metadata is usually a pointer to vtable of T implementation for S, but can be something else and the value is considered internal to the compiler.