Lines Matching refs:AsRef
71 pub fn B<'a, B: ?Sized + AsRef<[u8]>>(bytes: &'a B) -> &'a [u8] { in B()
613 fn contains_str<B: AsRef<[u8]>>(&self, needle: B) -> bool { in contains_str()
631 fn starts_with_str<B: AsRef<[u8]>>(&self, prefix: B) -> bool { in starts_with_str()
649 fn ends_with_str<B: AsRef<[u8]>>(&self, suffix: B) -> bool { in ends_with_str()
684 fn find<B: AsRef<[u8]>>(&self, needle: B) -> Option<usize> { in find()
721 fn rfind<B: AsRef<[u8]>>(&self, needle: B) -> Option<usize> { in rfind()
763 fn find_iter<'a, B: ?Sized + AsRef<[u8]>>( in find_iter()
808 fn rfind_iter<'a, B: ?Sized + AsRef<[u8]>>( in rfind_iter()
932 fn find_byteset<B: AsRef<[u8]>>(&self, byteset: B) -> Option<usize> { in find_byteset()
969 fn find_not_byteset<B: AsRef<[u8]>>(&self, byteset: B) -> Option<usize> { in find_not_byteset()
1006 fn rfind_byteset<B: AsRef<[u8]>>(&self, byteset: B) -> Option<usize> { in rfind_byteset()
1043 fn rfind_not_byteset<B: AsRef<[u8]>>(&self, byteset: B) -> Option<usize> { in rfind_not_byteset()
1195 fn split_str<'a, B: ?Sized + AsRef<[u8]>>( in split_str()
1289 fn rsplit_str<'a, B: ?Sized + AsRef<[u8]>>( in rsplit_str()
1332 fn splitn_str<'a, B: ?Sized + AsRef<[u8]>>( in splitn_str()
1378 fn rsplitn_str<'a, B: ?Sized + AsRef<[u8]>>( in rsplitn_str()
1422 fn replace<N: AsRef<[u8]>, R: AsRef<[u8]>>( in replace()
1468 fn replacen<N: AsRef<[u8]>, R: AsRef<[u8]>>( in replacen()
1526 fn replace_into<N: AsRef<[u8]>, R: AsRef<[u8]>>( in replace_into()
1590 fn replacen_into<N: AsRef<[u8]>, R: AsRef<[u8]>>( in replacen_into()
2996 pub fn new<B: ?Sized + AsRef<[u8]>>(needle: &'a B) -> Finder<'a> { in new()
3052 pub fn find<B: AsRef<[u8]>>(&self, haystack: B) -> Option<usize> { in find()
3081 pub fn new<B: ?Sized + AsRef<[u8]>>(needle: &'a B) -> FinderReverse<'a> { in new()
3137 pub fn rfind<B: AsRef<[u8]>>(&self, haystack: B) -> Option<usize> { in rfind()