/// Parse a list of strings and put it into an ip_list
///
/// This is mostly useful for unit tests
Parse a list of strings and put it into an ip_list
This is mostly useful for unit tests
Parse a list of strings and put it into an ip_list This is mostly useful for unit tests
pub fn parse_list<I>(iter: I)
        -> Result<IpList, AddrParseError>
        where I: IntoIterator,
              I::Item: AsRef<str>
    {
        Ok(IpList(Arc::new(iter.into_iter()
            .map(|x| x.as_ref().parse())
            .collect::<Result<Vec<_>, _>>()?
        )))
    }
pub fn parse_list < I > ( iter : I ) -> Result < IpList , AddrParseError > where I : IntoIterator , I :: Item : AsRef < str > { Ok ( IpList ( Arc :: new ( iter . into_iter ( ) . map ( | x | x . as_ref ( ) . parse ( ) ) . collect :: < Result < Vec < _ > , _ > > ( ) ? ) ) ) }
Parse a list of strings and put it into an ip_list
This is mostly useful for unit tests
Parse a list of strings and put it into an ip_list This is mostly useful for unit tests
iter
I