Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: add
impl<'a> From<&'a BString> for Cow<'a, BStr>
This commit simplifies code in situations like: ``` let mut v = Vec::<Cow<'a, BStr>>::new(); let s = BString::new(...); // Before this commit, we would have to do: // v.push(s.as_bstr().into()); v.push(s.into()); ``` PR #187
- Loading branch information