devela::code::util

Macro capture_tail_tuple

Source
macro_rules! capture_tail_tuple {
    (block $first:block, $($tail:block),* $(,)?) => { ... };
    (expr $first:expr, $($tail:expr),* $(,)?) => { ... };
    (ident $first:ident, $($tail:ident),* $(,)?) => { ... };
    (literal $first:literal, $($tail:literal),* $(,)?) => { ... };
    (meta $first:meta, $($tail:meta),* $(,)?) => { ... };
    (pat $first:pat, $($tail:pat),* $(,)?) => { ... };
    (path $first:path, $($tail:path),* $(,)?) => { ... };
    (tt $first:tt, $($tail:tt),* $(,)?) => { ... };
    (ty $first:ty, $($tail:ty),* $(,)?) => { ... };
    ($cat:tt $first:tt) => { ... };
}
Expand description

Captures all the tokens except the first one, as a tuple.