TupleApply

Trait TupleApply 

Source
pub trait TupleApply<F, Tpl> { }
Available on crate feature apply only.
Expand description

A function and a tuple that are usable with apply().

See also: apply(), Apply.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<F> TupleApply<&F, ()> for (&F, ())

Source§

impl<F> TupleApply<&mut F, ()> for (&mut F, ())

Source§

impl<F, R, I1> TupleApply<&F, (I1,)> for (&F, (I1,))
where F: Fn(I1) -> R,

Source§

impl<F, R, I1> TupleApply<&mut F, (I1,)> for (&mut F, (I1,))
where F: FnMut(I1) -> R,

Source§

impl<F, R, I1, I2> TupleApply<&F, (I1, I2)> for (&F, (I1, I2))
where F: Fn(I1, I2) -> R,

Source§

impl<F, R, I1, I2> TupleApply<&mut F, (I1, I2)> for (&mut F, (I1, I2))
where F: FnMut(I1, I2) -> R,

Source§

impl<F, R, I1, I2, I3> TupleApply<&F, (I1, I2, I3)> for (&F, (I1, I2, I3))
where F: Fn(I1, I2, I3) -> R,

Source§

impl<F, R, I1, I2, I3> TupleApply<&mut F, (I1, I2, I3)> for (&mut F, (I1, I2, I3))
where F: FnMut(I1, I2, I3) -> R,

Source§

impl<F, R, I1, I2, I3, I4> TupleApply<&F, (I1, I2, I3, I4)> for (&F, (I1, I2, I3, I4))
where F: Fn(I1, I2, I3, I4) -> R,

Source§

impl<F, R, I1, I2, I3, I4> TupleApply<&mut F, (I1, I2, I3, I4)> for (&mut F, (I1, I2, I3, I4))
where F: FnMut(I1, I2, I3, I4) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5> TupleApply<&F, (I1, I2, I3, I4, I5)> for (&F, (I1, I2, I3, I4, I5))
where F: Fn(I1, I2, I3, I4, I5) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5> TupleApply<&mut F, (I1, I2, I3, I4, I5)> for (&mut F, (I1, I2, I3, I4, I5))
where F: FnMut(I1, I2, I3, I4, I5) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5, I6> TupleApply<&F, (I1, I2, I3, I4, I5, I6)> for (&F, (I1, I2, I3, I4, I5, I6))
where F: Fn(I1, I2, I3, I4, I5, I6) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5, I6> TupleApply<&mut F, (I1, I2, I3, I4, I5, I6)> for (&mut F, (I1, I2, I3, I4, I5, I6))
where F: FnMut(I1, I2, I3, I4, I5, I6) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5, I6, I7> TupleApply<&F, (I1, I2, I3, I4, I5, I6, I7)> for (&F, (I1, I2, I3, I4, I5, I6, I7))
where F: Fn(I1, I2, I3, I4, I5, I6, I7) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5, I6, I7> TupleApply<&mut F, (I1, I2, I3, I4, I5, I6, I7)> for (&mut F, (I1, I2, I3, I4, I5, I6, I7))
where F: FnMut(I1, I2, I3, I4, I5, I6, I7) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5, I6, I7, I8> TupleApply<&F, (I1, I2, I3, I4, I5, I6, I7, I8)> for (&F, (I1, I2, I3, I4, I5, I6, I7, I8))
where F: Fn(I1, I2, I3, I4, I5, I6, I7, I8) -> R,

Source§

impl<F, R, I1, I2, I3, I4, I5, I6, I7, I8> TupleApply<&mut F, (I1, I2, I3, I4, I5, I6, I7, I8)> for (&mut F, (I1, I2, I3, I4, I5, I6, I7, I8))
where F: FnMut(I1, I2, I3, I4, I5, I6, I7, I8) -> R,

Implementors§