MCPcopy Create free account
hub / github.com/douchuan/algorithm / parse_list_num

Function parse_list_num

src/graph/util/parser.rs:95–102  ·  view source on GitHub ↗

用空格分割的两个数字 "1 2"

(i: &str)

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected