Macro frunk::Coprod [] [src]

macro_rules! Coprod {
    () => { ... };
    ($single: ty) => { ... };
    ($first: ty, $( $repeated: ty ), +) => { ... };
    ($single: ty,) => { ... };
    ($first: ty, $( $repeated: ty, ) +) => { ... };
}

Returns a type signature for a Coproduct of the provided types

This is a type macro (introduced in Rust 1.13) that makes it easier to write nested type signatures.

Examples

type I32Bool = Coprod!(i32, bool);
let co1 = I32Bool::inject(3);Run