You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like most of the work to support visiting borrowed data for some concrete lifetime (instead of just for any lifetime) is already done, the Visit trait just doesn't surface a lifetime that implementors can use to stash values across calls.
I at least find introducing lifetimes late in an API design can get a bit hairy so it might something to explore sooner rather than later 🙂
The text was updated successfully, but these errors were encountered:
This may turn out to be less important for valuable once it has some pointer concept (#59) if you can logically borrow a piece of data by storing a borrow to the overall Valuable and a pointer to the specific field you want to borrow.
It looks like most of the work to support visiting borrowed data for some concrete lifetime (instead of just for any lifetime) is already done, the
Visit
trait just doesn't surface a lifetime that implementors can use to stash values across calls.I at least find introducing lifetimes late in an API design can get a bit hairy so it might something to explore sooner rather than later 🙂
The text was updated successfully, but these errors were encountered: