pub fn as_vec(conf: &String) -> Vec<(OperatorId,OperatorInstances)>
{
    let v = conf.split(",").collect::<Vec<&str>>();
    assert_eq!(v.len() % 2,0);
    let mut c = Vec::new();
    let mut it = v.chunks(2);
    while let Some(&[o,i]) = it.next()
    {
        c.push((o.to_string(),OperatorInstances::from_str(i).expect("Error parsing number of instances in configuration.")))
    }
    c
}
/// Converts a dataflow configuration `conf` to a vector of pairs `(OperatorId,OperatorInstances)`
Converts a dataflow configuration `conf` to a vector of pairs `(OperatorId,OperatorInstances)`
Converts a dataflow configuration ` conf ` to a vector of pairs ` ( OperatorId OperatorInstances ) `
pub fn as_vec(conf: &String) -> Vec<(OperatorId,OperatorInstances)>
{
    let v = conf.split(",").collect::<Vec<&str>>();
    assert_eq!(v.len() % 2,0);
    let mut c = Vec::new();
    let mut it = v.chunks(2);
    while let Some(&[o,i]) = it.next()
    {
        c.push((o.to_string(),OperatorInstances::from_str(i).expect("Error parsing number of instances in configuration.")))
    }
    c
}
pub fn as_vec ( conf : & String ) -> Vec < ( OperatorId , OperatorInstances ) > { let v = conf . split ( " " ) . collect :: < Vec < & str > > ( ) ; assert_eq ! ( v len ( ) 2 0 ) ; let mut c = Vec :: new ( ) ; let mut it = v . chunks ( 2 ) ; while let Some ( & [ o , i ] ) = it . next ( ) { c . push ( ( o . to_string ( ) , OperatorInstances :: from_str ( i ) . expect ( " " ) ) ) } c }
Converts a dataflow configuration `conf` to a vector of pairs `(OperatorId,OperatorInstances)`
Converts a dataflow configuration ` conf ` to a vector of pairs ` ( OperatorId OperatorInstances ) `
conf
&String
conf
&String