pub fn commasep<T>(input: &str) -> Vec<T>
where T: FromStr, <T as FromStr>::Err: Debug {
    input.trim()
        .split(',')
        .map(|elem| elem.parse().unwrap())
        .collect::<Vec<_>>()
}
/*
 * Helper function to parse a comma separated line
 * into a vector.
 */
Helper function to parse a comma separated line
into a vector.
Helper function to parse a comma separated line into a vector .
pub fn commasep<T>(input: &str) -> Vec<T>
where T: FromStr, <T as FromStr>::Err: Debug {
    input.trim()
        .split(',')
        .map(|elem| elem.parse().unwrap())
        .collect::<Vec<_>>()
}
pub fn commasep < T > ( input : & str ) -> Vec < T > where T : FromStr , < T as FromStr > :: Err : Debug { input . trim ( ) . split ( ',' ) . map ( | elem | elem . parse ( ) . unwrap ( ) ) . collect :: < Vec < _ > > ( ) }
Helper function to parse a comma separated line
 into a vector.
Helper function to parse a comma separated line into a vector .
input
&str
input
&str