pub fn from_one_comma_delimited<T: str::FromStr>(raw: &[u8]) -> Option<Vec<T>> {
    match str::from_utf8(raw) {
        Ok(s) => {
            Some(s.as_slice()
                 .split(',')
                 .map(|x| x.trim())
                 .filter_map(str::FromStr::from_str)
                 .collect())
        }
        Err(_) => None
    }
}
/// Reads a comma-delimited raw string into a Vec.
Reads a comma-delimited raw string into a Vec.
Reads a comma - delimited raw string into a Vec .
pub fn from_one_comma_delimited<T: str::FromStr>(raw: &[u8]) -> Option<Vec<T>> {
    match str::from_utf8(raw) {
        Ok(s) => {
            Some(s.as_slice()
                 .split(',')
                 .map(|x| x.trim())
                 .filter_map(str::FromStr::from_str)
                 .collect())
        }
        Err(_) => None
    }
}
pub fn from_one_comma_delimited < T : str :: FromStr > ( raw : & [ u8 ] ) -> Option < Vec < T > > { match str :: from_utf8 ( raw ) { Ok ( s ) => { Some ( s . as_slice ( ) . split ( ',' ) . map ( | x | x . trim ( ) ) . filter_map ( str :: FromStr :: from_str ) . collect ( ) ) } Err ( _ ) => None } }
Reads a comma-delimited raw string into a Vec.
Reads a comma - delimited raw string into a Vec .
raw
&[u8]
raw
&[u8]