… despite its documentation claiming it doesn’t.
Ideally, we should:
- Add a no-copy
Vec::from_owned_slice, based on Vec::from_raw_parts
- Change
StrBuf::from_owned_str to use Vec::from_owned_slice
Alternatively (or in the meantime), remove the claim from the documentation.
… despite its documentation claiming it doesn’t.
Ideally, we should:
Vec::from_owned_slice, based onVec::from_raw_partsStrBuf::from_owned_strto useVec::from_owned_sliceAlternatively (or in the meantime), remove the claim from the documentation.