Macro muds::Cons

source · []
macro_rules! Cons {
    () => { ... };
    (..$Rest:ty) => { ... };
    ($A:ty) => { ... };
    ($A:ty, $($Tail:tt)*) => { ... };
}
Expand description

Returns the concrete Cons type signature for the provided types.

Examples

let c: Cons!(f32, &str, Option<i32>) = cons![123f32, "hello", Some(45)];
let c: Cons!(f32, ..Cons!(&str, Option<i32>)) = cons![123f32, "hello", Some(45)];