Lines Matching refs:rest

167   (__impl $i:expr, $submac:ident!( $($args:tt)* ), $($rest:tt)* ) => (
177 (__impl $i:expr, $e:path, $($rest:tt)* ) => (
178 alt!(__impl $i, call!($e) , $($rest)*);
180 (__impl $i:expr, $e:path | $($rest:tt)*) => (
181 alt!(__impl $i, call!($e) | $($rest)*);
184 (__impl $i:expr, $subrule:ident!( $($args:tt)*) | $($rest:tt)*) => (
194 let out = alt!(__impl $i, $($rest)*);
211 (__impl $i:expr, $subrule:ident!( $($args:tt)* ) => { $gen:expr } | $($rest:tt)*) => (
220 let out = alt!(__impl $i, $($rest)*);
236 (__impl $i:expr, $e:path => { $gen:expr } | $($rest:tt)*) => (
237 alt!(__impl $i, call!($e) => { $gen } | $($rest)*);
250 ($i:expr, $($rest:tt)*) => (
252 alt!(__impl $i, $($rest)* | __end)
373 ($i:expr, $submac:ident!( $($args:tt)*), $($rest:tt)*) => (
375 switch!(__impl $i, $submac!($($args)*), $($rest)*)
378 ($i:expr, $e:path, $($rest:tt)*) => (
380 switch!(__impl $i, call!($e), $($rest)*)
459 ($i:expr, $($rest:tt)*) => (
465 let mut res = permutation_init!((), $($rest)*);
472 permutation_iterator!(0, input, all_done, needed, res, $($rest)*);
485 if let Some(unwrapped_res) = { permutation_unwrap!(0, (), res, $($rest)*) } {
502 ((), $e:ident?, $($rest:tt)*) => (
503 permutation_init!(($crate::lib::std::option::Option::None), $($rest)*)
505 ((), $e:ident, $($rest:tt)*) => (
506 permutation_init!(($crate::lib::std::option::Option::None), $($rest)*)
509 ((), $submac:ident!( $($args:tt)* )?, $($rest:tt)*) => (
510 permutation_init!(($crate::lib::std::option::Option::None), $($rest)*)
512 ((), $submac:ident!( $($args:tt)* ), $($rest:tt)*) => (
513 permutation_init!(($crate::lib::std::option::Option::None), $($rest)*)
516 (($($parsed:expr),*), $e:ident?, $($rest:tt)*) => (
517 permutation_init!(($($parsed),* , $crate::lib::std::option::Option::None), $($rest)*);
519 (($($parsed:expr),*), $e:ident, $($rest:tt)*) => (
520 permutation_init!(($($parsed),* , $crate::lib::std::option::Option::None), $($rest)*);
523 (($($parsed:expr),*), $submac:ident!( $($args:tt)* )?, $($rest:tt)*) => (
524 permutation_init!(($($parsed),* , $crate::lib::std::option::Option::None), $($rest)*);
526 (($($parsed:expr),*), $submac:ident!( $($args:tt)* ), $($rest:tt)*) => (
527 permutation_init!(($($parsed),* , $crate::lib::std::option::Option::None), $($rest)*);
551 (0, $submac:ident ! ($($rest:tt)*)) => ($submac!(1, $($rest)*));
552 (1, $submac:ident ! ($($rest:tt)*)) => ($submac!(2, $($rest)*));
553 (2, $submac:ident ! ($($rest:tt)*)) => ($submac!(3, $($rest)*));
554 (3, $submac:ident ! ($($rest:tt)*)) => ($submac!(4, $($rest)*));
555 (4, $submac:ident ! ($($rest:tt)*)) => ($submac!(5, $($rest)*));
556 (5, $submac:ident ! ($($rest:tt)*)) => ($submac!(6, $($rest)*));
557 (6, $submac:ident ! ($($rest:tt)*)) => ($submac!(7, $($rest)*));
558 (7, $submac:ident ! ($($rest:tt)*)) => ($submac!(8, $($rest)*));
559 (8, $submac:ident ! ($($rest:tt)*)) => ($submac!(9, $($rest)*));
560 (9, $submac:ident ! ($($rest:tt)*)) => ($submac!(10, $($rest)*));
561 (10, $submac:ident ! ($($rest:tt)*)) => ($submac!(11, $($rest)*));
562 (11, $submac:ident ! ($($rest:tt)*)) => ($submac!(12, $($rest)*));
563 (12, $submac:ident ! ($($rest:tt)*)) => ($submac!(13, $($rest)*));
564 (13, $submac:ident ! ($($rest:tt)*)) => ($submac!(14, $($rest)*));
565 (14, $submac:ident ! ($($rest:tt)*)) => ($submac!(15, $($rest)*));
566 (15, $submac:ident ! ($($rest:tt)*)) => ($submac!(16, $($rest)*));
567 (16, $submac:ident ! ($($rest:tt)*)) => ($submac!(17, $($rest)*));
568 (17, $submac:ident ! ($($rest:tt)*)) => ($submac!(18, $($rest)*));
569 (18, $submac:ident ! ($($rest:tt)*)) => ($submac!(19, $($rest)*));
570 (19, $submac:ident ! ($($rest:tt)*)) => ($submac!(20, $($rest)*));
576 ($it:tt, (), $res:ident, $e:ident?, $($rest:tt)*) => (
577 succ!($it, permutation_unwrap!(($res.$it), $res, $($rest)*));
579 ($it:tt, (), $res:ident, $e:ident, $($rest:tt)*) => ({
582 succ!($it, permutation_unwrap!((res.unwrap()), $res, $($rest)*))
588 ($it:tt, (), $res:ident, $submac:ident!( $($args:tt)* )?, $($rest:tt)*) => (
589 succ!($it, permutation_unwrap!(($res.$it), $res, $($rest)*));
591 ($it:tt, (), $res:ident, $submac:ident!( $($args:tt)* ), $($rest:tt)*) => ({
594 succ!($it, permutation_unwrap!((res.unwrap()), $res, $($rest)*))
600 ($it:tt, ($($parsed:expr),*), $res:ident, $e:ident?, $($rest:tt)*) => (
601 succ!($it, permutation_unwrap!(($($parsed),* , $res.$it), $res, $($rest)*));
603 ($it:tt, ($($parsed:expr),*), $res:ident, $e:ident, $($rest:tt)*) => ({
606 succ!($it, permutation_unwrap!(($($parsed),* , res.unwrap()), $res, $($rest)*))
612 ($it:tt, ($($parsed:expr),*), $res:ident, $submac:ident!( $($args:tt)* )?, $($rest:tt)*) => (
613 succ!($it, permutation_unwrap!(($($parsed),* , $res.$it), $res, $($rest)*));
615 ($it:tt, ($($parsed:expr),*), $res:ident, $submac:ident!( $($args:tt)* ), $($rest:tt)*) => ({
618 succ!($it, permutation_unwrap!(($($parsed),* , res.unwrap()), $res, $($rest)*))
652 ($it:tt,$i:expr, $all_done:expr, $needed:expr, $res:expr, $e:ident?, $($rest:tt)*) => (
653 permutation_iterator!($it, $i, $all_done, $needed, $res, call!($e), $($rest)*);
655 ($it:tt,$i:expr, $all_done:expr, $needed:expr, $res:expr, $e:ident, $($rest:tt)*) => (
656 permutation_iterator!($it, $i, $all_done, $needed, $res, call!($e), $($rest)*);
659 …:expr, $all_done:expr, $needed:expr, $res:expr, $submac:ident!( $($args:tt)* )?, $($rest:tt)*) => {
660 permutation_iterator!($it, $i, $all_done, $needed, $res, $submac!($($args)*) , $($rest)*);
662 …:expr, $all_done:expr, $needed:expr, $res:expr, $submac:ident!( $($args:tt)* ), $($rest:tt)*) => ({
683 succ!($it, permutation_iterator!($i, $all_done, $needed, $res, $($rest)*));