Lines Matching refs:result
38 // `preceded` takes a prefix parser, and if it succeeds, returns the result
43 // It returns the result of the middle parser. In this case, it parses
48 // `map_res` takes the result of a parser and applies a function that returns
67 // `alt` tries each parser in sequence, returning the result of
168 let result = parse_string::<()>(data);
169 assert_eq!(result, Ok(("", String::from("abc"))));
170 println!("Result: {}\n\n", result.unwrap().1);
177 let result = parse_string::<()>(data);
179 result,
185 println!("Result:\n\n{}", result.unwrap().1);