Trait DeTuple

Source
pub trait DeTuple {
    type Output;

    // Required method
    fn detuple(self) -> Self::Output;
}
Expand description

Utility that turns single-element tuple into that element and keeps multi-element tuples as they are

Required Associated Types§

Source

type Output

The output type - a single element or >=2 element tuple

Required Methods§

Source

fn detuple(self) -> Self::Output

Perform the transformation

Implementations on Foreign Types§

Source§

impl<A> DeTuple for (A,)

Source§

type Output = A

Source§

fn detuple(self) -> Self::Output

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> DeTuple for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> DeTuple for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P> DeTuple for (C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<D, E, F, G, H, I, J, K, L, M, N, O, P> DeTuple for (D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<E, F, G, H, I, J, K, L, M, N, O, P> DeTuple for (E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<F, G, H, I, J, K, L, M, N, O, P> DeTuple for (F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<G, H, I, J, K, L, M, N, O, P> DeTuple for (G, H, I, J, K, L, M, N, O, P)

Source§

impl<H, I, J, K, L, M, N, O, P> DeTuple for (H, I, J, K, L, M, N, O, P)

Source§

impl<I, J, K, L, M, N, O, P> DeTuple for (I, J, K, L, M, N, O, P)

Source§

impl<J, K, L, M, N, O, P> DeTuple for (J, K, L, M, N, O, P)

Source§

impl<K, L, M, N, O, P> DeTuple for (K, L, M, N, O, P)

Source§

impl<L, M, N, O, P> DeTuple for (L, M, N, O, P)

Source§

impl<M, N, O, P> DeTuple for (M, N, O, P)

Source§

impl<N, O, P> DeTuple for (N, O, P)

Source§

impl<O, P> DeTuple for (O, P)

Implementors§