Macro abi_stable::RTuple

source ·
macro_rules! RTuple {
    () => { ... };
    ($v0:ty $(,)* ) => { ... };
    ($v0:ty,$v1:ty $(,)* ) => { ... };
    ($v0:ty,$v1:ty,$v2:ty $(,)* ) => { ... };
    ($v0:ty,$v1:ty,$v2:ty,$v3:ty $(,)* ) => { ... };
}
Expand description

Use this macro to get the type of a Tuple* with the types passed to the macro.

§Example

use abi_stable::{
    std_types::{Tuple1, Tuple2, Tuple3, Tuple4},
    RTuple,
};

let tuple0: RTuple!() = ();

let tuple1: RTuple!(i32) = Tuple1(3);

let tuple2: RTuple!(i32, i32) = Tuple2(3, 5);

let tuple3: RTuple!(i32, i32, u32) = Tuple3(3, 5, 8);

let tuple4: RTuple!(i32, i32, u32, u32) = Tuple4(3, 5, 8, 9);