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
Here, it seems to have a hard-coded condition for Vec: https://github.com/koivunej/derive-into-owned/blob/master/src/helpers.rs#L130. Is it possible to support smallvec and possibly other types of collections as well? I tried using a trait to implement into_owned on SmallVec manually, but it still didn't work when contained in another struct.
The text was updated successfully, but these errors were encountered:
Sorry for the really late response, I failed to see an answer a 1y+ ago.
With the trait (see #14) and not duck-typing this might actually be doable. Though, one would have to support a lot of optional dependencies to support all, but regardless, that would be a logical next step.
Here, it seems to have a hard-coded condition for Vec: https://github.com/koivunej/derive-into-owned/blob/master/src/helpers.rs#L130. Is it possible to support smallvec and possibly other types of collections as well? I tried using a trait to implement
into_owned
on SmallVec manually, but it still didn't work when contained in another struct.The text was updated successfully, but these errors were encountered: