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
If we merely add T: ?Sized to Cow<'static,T> then I'd expect Cow<'static,[T]> should then serialzie exactly like [T], and hence like Vec<T>.
We want Cow<'static,[T]> to deserialize exactly like Vec<T>, which requires one new impl, but not sure if the orphan rules permit this, if an explict T: Sized helps, etc.
Box<T> could serialzie exactly like T, so then Box<[T]> would serialzie exactly like [T], and hence like Vec<T>.
Box<T> could deserialize exactly like T. As [T] has no deserializer, Box<[T]> could deserialize exactly like Vec<T>, no?