is there a way to go from
I think you'd need to intern it?
depends on the T, I suspect
yeah, you need to intern
yeah that was my guess
shouldn't one be able without that?
List is a wrapper around a slice so I'd like to move the slice inside the List and return a pointer to that just created wrapper
List specifically is "I am interned"
at least per the doc comment on it
yeah maybe I can talk about the specific case I'm hitting ...
I'm trying to use it inside a Cow
I want to create copies on write but copies may not happen and I want to do nothing
the problem is that I can't wrap a List in a Cow so I end converting it to a slice at some point but if nothing happens I want the List back out of that slice
I have the original List still somewhere but was wondering if this could be done
I think what you want is basically not possible
maybe a custom cow that re-interns on write or something
the thing is I want that conversion when a write didn't occur, if I write occurs I needto reintern for sure
I meant, I have solved this in a different and better way
but still I was wondering in general if was possible to go from
sure, by interning for some T
but not otherwise