Can DynMetadata
be made constructable?
#126828
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Related tracking issue: #81513
As of right now, the only way to get a
DynMetadata
is to callptr::metadata
on an existing pointer, which can create a chicken-and-egg problem. It could be useful to be able to get the metadata for a hypothetical trait objectFoo as Trait
as well, without first having to construct such a trait object. However, I don't know if this would be possible, and whether it would lead to soundness issues or have other undesired consequences.The text was updated successfully, but these errors were encountered: