fn parse_list(numbers: Option<&&str>) -> Result<Vec<u32>, ()> {
		let mut v = Vec::<u32>::new();
		for num in numbers.unwrap_or(&"").split(",") {
			if let Ok(n) = num.parse::<u32>() {
				v.push(n);
			} else {
				return Err(());
			}
		}
		Ok(v)
	}
// parse number separated list of numbers
parse number separated list of numbers
parse number separated list of numbers
fn parse_list(numbers: Option<&&str>) -> Result<Vec<u32>, ()> {
		let mut v = Vec::<u32>::new();
		for num in numbers.unwrap_or(&"").split(",") {
			if let Ok(n) = num.parse::<u32>() {
				v.push(n);
			} else {
				return Err(());
			}
		}
		Ok(v)
	}
fn parse_list ( numbers : Option < & & str > ) -> Result < Vec < u32 > , ( ) > { let mut v = Vec :: < u32 > :: new ( ) ; for num in numbers . unwrap_or ( & " " ) . split ( " " ) { if let Ok ( n ) = num . parse :: < u32 > ( ) { v . push ( n ) ; } else { return Err ( ( ) ) ; } } Ok ( v ) }
parse number separated list of numbers
parse number separated list of numbers
numbers
Option<&&str>
numbers
Option<&&str>