I have a Rust struct T<'a> with Cow<'a, X> fields. I want to create .to_owned version of the struct and embed in another struct with a different lifetime. Lifetime of new struct could be shorter or longer. How do I do that?
-
-
Oooh - I haven't learned the `T: AsRef<Borrowed>` trick yet!
-
You might have issues depending on whether you can convert a reference of one into a reference of the other, really just depends on what other fields exist.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.