Trait tuple::CallOnce

source ·
pub trait CallOnce<T> {
    type Output;

    // Required method
    fn call_once(self, args: T) -> Self::Output;
}
Expand description

Call a FnOnce and unpack the arguments.

Required Associated Types§

Required Methods§

source

fn call_once(self, args: T) -> Self::Output

Implementors§

source§

impl<Func, Out, A> CallOnce<(A,)> for Func
where Func: FnOnce(A) -> Out,

§

type Output = Out

source§

impl<Func, Out, A> CallOnce<T1<A>> for Func
where Func: FnOnce(A) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B> CallOnce<(A, B)> for Func
where Func: FnOnce(A, B) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B> CallOnce<T2<A, B>> for Func
where Func: FnOnce(A, B) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C> CallOnce<(A, B, C)> for Func
where Func: FnOnce(A, B, C) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C> CallOnce<T3<A, B, C>> for Func
where Func: FnOnce(A, B, C) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D> CallOnce<(A, B, C, D)> for Func
where Func: FnOnce(A, B, C, D) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D> CallOnce<T4<A, B, C, D>> for Func
where Func: FnOnce(A, B, C, D) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E> CallOnce<(A, B, C, D, E)> for Func
where Func: FnOnce(A, B, C, D, E) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E> CallOnce<T5<A, B, C, D, E>> for Func
where Func: FnOnce(A, B, C, D, E) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F> CallOnce<(A, B, C, D, E, F)> for Func
where Func: FnOnce(A, B, C, D, E, F) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F> CallOnce<T6<A, B, C, D, E, F>> for Func
where Func: FnOnce(A, B, C, D, E, F) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G> CallOnce<(A, B, C, D, E, F, G)> for Func
where Func: FnOnce(A, B, C, D, E, F, G) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G> CallOnce<T7<A, B, C, D, E, F, G>> for Func
where Func: FnOnce(A, B, C, D, E, F, G) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H> CallOnce<(A, B, C, D, E, F, G, H)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H> CallOnce<T8<A, B, C, D, E, F, G, H>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I> CallOnce<(A, B, C, D, E, F, G, H, I)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I> CallOnce<T9<A, B, C, D, E, F, G, H, I>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J> CallOnce<(A, B, C, D, E, F, G, H, I, J)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J> CallOnce<T10<A, B, C, D, E, F, G, H, I, J>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K> CallOnce<(A, B, C, D, E, F, G, H, I, J, K)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K> CallOnce<T11<A, B, C, D, E, F, G, H, I, J, K>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L> CallOnce<(A, B, C, D, E, F, G, H, I, J, K, L)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L> CallOnce<T12<A, B, C, D, E, F, G, H, I, J, K, L>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M> CallOnce<(A, B, C, D, E, F, G, H, I, J, K, L, M)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M> CallOnce<T13<A, B, C, D, E, F, G, H, I, J, K, L, M>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M, N> CallOnce<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M, N> CallOnce<T14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> CallOnce<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> CallOnce<T15<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> CallOnce<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Out,

§

type Output = Out

source§

impl<Func, Out, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> CallOnce<T16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>> for Func
where Func: FnOnce(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) -> Out,

§

type Output = Out