Lines Matching refs:Cow
1 use std::borrow::Cow;
461 ) -> Cow<'t, [u8]> { in replace()
475 ) -> Cow<'t, [u8]> { in replace_all()
490 ) -> Cow<'t, [u8]> { in replacen()
494 return Cow::Borrowed(text); in replacen()
507 return Cow::Owned(new); in replacen()
514 return Cow::Borrowed(text); in replacen()
529 Cow::Owned(new) in replacen()
1128 fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, [u8]>> { in no_expansion()
1168 fn no_expansion<'r>(&'r mut self) -> Option<Cow<'r, [u8]>> { in no_expansion()
1178 fn no_expansion(&mut self) -> Option<Cow<[u8]>> { in no_expansion()
1188 fn no_expansion(&mut self) -> Option<Cow<[u8]>> { in no_expansion()
1198 fn no_expansion(&mut self) -> Option<Cow<[u8]>> { in no_expansion()
1203 impl<'a> Replacer for Cow<'a, [u8]> { implementation
1208 fn no_expansion(&mut self) -> Option<Cow<[u8]>> { in no_expansion()
1213 impl<'a> Replacer for &'a Cow<'a, [u8]> { implementation
1218 fn no_expansion(&mut self) -> Option<Cow<[u8]>> { in no_expansion()
1223 fn no_expansion<T: AsRef<[u8]>>(t: &T) -> Option<Cow<[u8]>> { in no_expansion()
1227 None => Some(Cow::Borrowed(s)), in no_expansion()
1257 fn no_expansion(&mut self) -> Option<Cow<[u8]>> { in no_expansion()
1258 Some(Cow::Borrowed(self.0)) in no_expansion()