fn create_condition(cond: Condition) -> TokenStream {
    let mut condvec = Vec::<TokenStream>::new();

    // unpack the OrCondition and get all AndConditions from within it
    for c in cond.0 {
        condvec.push(create_and_condition(c));
    }

    // unfold OrConditions and tokenize together with ||
    quote! { #(#condvec)||* }
}
// unfold OrConditions and tokenize together with ||
unfold OrConditions and tokenize together with ||
unfold OrConditions and tokenize together with ||
fn create_condition(cond: Condition) -> TokenStream {
    let mut condvec = Vec::<TokenStream>::new();
    // unpack the OrCondition and get all AndConditions from within it
    for c in cond.0 {
        condvec.push(create_and_condition(c));
    }
    // unfold OrConditions and tokenize together with ||
    quote! { #(#condvec)||* }
}
fn create_condition ( cond : Condition ) -> TokenStream { let mut condvec = Vec :: < TokenStream > :: new ( ) ; // unpack the OrCondition and get all AndConditions from within it for c in cond . 0 { condvec . push ( create_and_condition ( c ) ) ; } // unfold OrConditions and tokenize together with || quote ! { ( condvec ) } }
unfold OrConditions and tokenize together with ||
unfold OrConditions and tokenize together with ||
cond
Condition
cond
Condition