Lines Matching refs:str

7 use crate::lib::std::str::from_utf8;
8 use crate::lib::std::str::CharIndices;
9 use crate::lib::std::str::Chars;
10 use crate::lib::std::str::FromStr;
31 impl<'a> InputLength for &'a str {
71 impl Offset for str {
80 impl<'a> Offset for &'a str {
95 impl<'a> AsBytes for &'a str {
102 impl AsBytes for str {
157 /// Warning: for `&str` it recognizes alphabetic
305 /// Example: `u8` for `&[u8]` or `char` for `&str`
308 /// for use with [Slice]. If we're iterating over `&str`, the position
377 impl<'a> InputIter for &'a str {
416 impl<'a> InputTake for &'a str {
447 /// Example: `u8` for `&[u8]` or `char` for `&str`
625 impl<'a> InputTakeAtPosition for &'a str {
723 /// Warning: for `&str`, the comparison is done
826 impl<'a, 'b> Compare<&'b str> for &'a [u8] {
828 fn compare(&self, t: &'b str) -> CompareResult {
832 fn compare_no_case(&self, t: &'b str) -> CompareResult {
837 impl<'a, 'b> Compare<&'b str> for &'a str {
839 fn compare(&self, t: &'b str) -> CompareResult {
845 fn compare_no_case(&self, t: &'b str) -> CompareResult {
864 impl<'a, 'b> Compare<&'b [u8]> for &'a str {
887 impl<'a> FindToken<u8> for &'a str {
899 impl<'a, 'b> FindToken<&'a u8> for &'b str {
911 impl<'a> FindToken<char> for &'a str {
944 // This matches the behavior of str.find("").
969 impl<'a, 'b> FindSubstring<&'b str> for &'a [u8] {
970 fn find_substring(&self, substr: &'b str) -> Option<usize> {
975 impl<'a, 'b> FindSubstring<&'b str> for &'a str {
977 fn find_substring(&self, substr: &'b str) -> Option<usize> {
982 /// Used to integrate `str`'s `parse()` method
985 /// will first convert it to a `&str`, then apply the `parse()` function
995 impl<'a, R: FromStr> ParseTo<R> for &'a str {
1005 /// something else than a `&[T]` or `&str`
1047 slice_ranges_impl! {str}
1141 /// Example: `u8` for `&[u8]` or `char` for `&str`
1184 impl ExtendInto for str {
1199 impl ExtendInto for &str {
1402 impl HexDisplay for str {