/// Parse a list of strings and put it into an address
///
/// This only uses one layer of addresses with same weights. And is mostly
/// useful for unit tests
Parse a list of strings and put it into an address
This only uses one layer of addresses with same weights. And is mostly
useful for unit tests
Parse a list of strings and put it into an address This only uses one layer of addresses with same weights . And is mostly useful for unit tests
pub fn parse_list<I>(iter: I)
        -> Result<Address, AddrParseError>
        where I: IntoIterator,
              I::Item: AsRef<str>
    {
        Ok(Address(Arc::new(Internal {
            addresses: vec![
                iter.into_iter()
                    .map(|x| x.as_ref().parse().map(|sa| (0, sa)))
                    .collect::<Result<Vec<_>, _>>()?
            ],
        })))
    }
pub fn parse_list < I > ( iter : I ) -> Result < Address , AddrParseError > where I : IntoIterator , I :: Item : AsRef < str > { Ok ( Address ( Arc :: new ( Internal { addresses : vec ! [ iter into_iter ( ) map ( x x as_ref ( ) parse ( ) map ( sa ( 0 sa ) ) ) collect Result Vec ( ) ] , } ) ) ) }
Parse a list of strings and put it into an address
This only uses one layer of addresses with same weights.
Parse a list of strings and put it into an address This only uses one layer of addresses with same weights .
iter
I