fn exhaust(parser: Parser, depth: u16) {
        if depth > 100 {
            panic!("Stuck in loop");
        }
        let mut a = parser;
        let mut b = dup_parser(&mut a);
        let mut c = dup_parser(&mut a);
        let mut d = dup_parser(&mut a);
        match a.next() {
            Ok(None) => (),
            _ => exhaust(a, depth + 1),
        }
        match b.value() {
            Err(_) => (),
            _ => exhaust(b, depth + 1),
        }
        match c.values() {
            Err(_) => (),
            Ok(mut iter) => {
                let _: Vec<_> = iter.by_ref().collect();
                exhaust(c, depth + 1);
            }
        };
        match d.optional_value() {
            None => (),
            Some(_) => exhaust(d, depth + 1),
        }
    }
/// Run many sequences of methods on a Parser.
Run many sequences of methods on a Parser.
Run many sequences of methods on a Parser .
fn exhaust(parser: Parser, depth: u16) {
        if depth > 100 {
            panic!("Stuck in loop");
        }
        let mut a = parser;
        let mut b = dup_parser(&mut a);
        let mut c = dup_parser(&mut a);
        let mut d = dup_parser(&mut a);
        match a.next() {
            Ok(None) => (),
            _ => exhaust(a, depth + 1),
        }
        match b.value() {
            Err(_) => (),
            _ => exhaust(b, depth + 1),
        }
        match c.values() {
            Err(_) => (),
            Ok(mut iter) => {
                let _: Vec<_> = iter.by_ref().collect();
                exhaust(c, depth + 1);
            }
        };
        match d.optional_value() {
            None => (),
            Some(_) => exhaust(d, depth + 1),
        }
    }
fn exhaust ( parser : Parser , depth : u16 ) { if depth > 100 { panic ! ( " " ) ; } let mut a = parser ; let mut b = dup_parser ( & mut a ) ; let mut c = dup_parser ( & mut a ) ; let mut d = dup_parser ( & mut a ) ; match a . next ( ) { Ok ( None ) => ( ) , _ => exhaust ( a , depth + 1 ) , } match b . value ( ) { Err ( _ ) => ( ) , _ => exhaust ( b , depth + 1 ) , } match c . values ( ) { Err ( _ ) => ( ) , Ok ( mut iter ) => { let _ : Vec < _ > = iter . by_ref ( ) . collect ( ) ; exhaust ( c , depth + 1 ) ; } } ; match d . optional_value ( ) { None => ( ) , Some ( _ ) => exhaust ( d , depth + 1 ) , } }
Run many sequences of methods on a Parser.
Run many sequences of methods on a Parser .
parser
Parser
depth
u16