Lines Matching refs:str
30 use std::str;
41 let result = str::from_utf8(x).unwrap();
87 fn twolines(i: &str) -> IResult<&str, (&str, &str)> {
161 pub fn parser<'a, E: ParseError<&'a str> + ContextError<&'a str>>(
162 i: &'a str,
163 ) -> IResult<&'a str, usize, E> {
186 let result: IResult<_, _, VerboseError<&str>> = pair(char('a'), char('b'))(input);
238 let parser = map(tag::<_, _, Error<&str>>("abc"), |_| ());