Replace impl<T: Collect> Collect for Box<[T]> with impl<T: Collect> Collect for [T]: allows the existing Box<T: ?Sized + Collect> impl to work for Box<[T]>, as well as the existing Rc<T: ?Sized + Collect> impl to work for Rc<[T]>, etc.
Also implements Collect for some additional 'static types: str, CStr, CString, Path, PathBuf, OsStr, OsString.
Replace
impl<T: Collect> Collect for Box<[T]>
withimpl<T: Collect> Collect for [T]
: allows the existingBox<T: ?Sized + Collect>
impl to work forBox<[T]>
, as well as the existingRc<T: ?Sized + Collect>
impl to work forRc<[T]>
, etc.Also implements
Collect
for some additional'static
types:str
,CStr
,CString
,Path
,PathBuf
,OsStr
,OsString
.