用空格分割的两个数字 "1 2"
(i: &str)
| 93 | /// 用空格分割的两个数字 |
| 94 | /// "1 2" |
| 95 | pub fn parse_list_num<K>(i: &str) -> IResult<&str, Vec<K>> |
| 96 | where |
| 97 | K: FromStr, |
| 98 | <K as FromStr>::Err: Debug, |
| 99 | { |
| 100 | let sep = " "; |
| 101 | separated_list1(tag(sep), parse_num)(i) |
| 102 | } |
| 103 | |
| 104 | pub fn parse_list_float(i: &str) -> IResult<&str, Vec<f32>> { |
| 105 | let sep = " "; |