Tracking Issue for #![feature(phantom_variance_markers)]
#135806
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(phantom_variance_markers)]
This is a tracking issue for phantom variance markers, which are identical to
PhantomData
but provide a self-documenting variance rather than contrived types such asPhantomData<fn() -> T>
to indicate contravariance.Public API
Steps / History
Unresolved Questions
Lifetime
type or one for each possible variance? The former would mean writingPhantomCovariant<Lifetime<'a>>
instead ofPhantomCovariantLifetime<'a>
, with the API otherwise being identical.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: