Can FormattedDateTime
implement Yokeable
?
#5390
Unanswered
Baptistemontan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you expand on your reason to wish to hold on to the FormattedDateTime? it's really intended to be a short lived type. In theory it's not invariant: ZeroMaps hit a limitation in the compiler, so in theory it could implement Yokeable with prove_covariance_manually, but in practice I'm not convinced it's worth it since I don't see a strong use case. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need a way to move a
FormattedDateTime
with it's formatter wrapped in aRc<DateTimeFormatter>
, I thought I could useyoke
for that but it seams likeFormattedDateTime
is invariant due to the underlyingsZeroMap
, is there a way to archieve what I want ?Beta Was this translation helpful? Give feedback.
All reactions