Lines Matching refs:Cow
64 use std::borrow::{Borrow, Cow, ToOwned};
196 impl<'a> From<BString> for Cow<'a, BStr> { implementation
198 fn from(s: BString) -> Cow<'a, BStr> { in from()
199 Cow::Owned(s) in from()
305 use std::borrow::Cow;
598 impl<'a> From<&'a BStr> for Cow<'a, BStr> { implementation
600 fn from(s: &'a BStr) -> Cow<'a, BStr> { in from()
601 Cow::Borrowed(s) in from()
644 impl_partial_eq_cow!(&'a BStr, Cow<'a, BStr>);
646 impl_partial_eq_cow!(&'a BStr, Cow<'a, str>);
648 impl_partial_eq_cow!(&'a BStr, Cow<'a, [u8]>);
975 use std::borrow::Cow; in test_cows_regression()
977 let c1 = Cow::from(b"hello bstr".as_bstr()); in test_cows_regression()
981 let c3 = Cow::from("hello str"); in test_cows_regression()