Trait Chain

Source
pub trait Chain<U> {
    type Output;

    // Required method
    fn chain(self, other: U) -> Self::Output;
}
Expand description

Combine two values

This trait is used to represent types that can be chained, including middleware and resource values.

Required Associated Types§

Source

type Output

The combined type

Required Methods§

Source

fn chain(self, other: U) -> Self::Output

Combine self with other.

Implementations on Foreign Types§

Source§

impl<R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, U> Chain<U> for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11)

Source§

impl<R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, U> Chain<U> for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10)

Source§

impl<R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, U> Chain<U> for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9)

Source§

impl<R0, R1, R2, R3, R4, R5, R6, R7, R8, U> Chain<U> for (R0, R1, R2, R3, R4, R5, R6, R7, R8)

Source§

impl<R0, R1, R2, R3, R4, R5, R6, R7, U> Chain<U> for (R0, R1, R2, R3, R4, R5, R6, R7)

Source§

impl<R0, R1, R2, R3, R4, R5, R6, U> Chain<U> for (R0, R1, R2, R3, R4, R5, R6)

Source§

impl<R0, R1, R2, R3, R4, R5, U> Chain<U> for (R0, R1, R2, R3, R4, R5)

Source§

impl<R0, R1, R2, R3, R4, U> Chain<U> for (R0, R1, R2, R3, R4)

Source§

impl<R0, R1, R2, R3, U> Chain<U> for (R0, R1, R2, R3)

Source§

type Output = (R0, R1, R2, R3, U)

Source§

fn chain(self, other: U) -> Self::Output

Source§

impl<R0, R1, R2, U> Chain<U> for (R0, R1, R2)

Source§

type Output = (R0, R1, R2, U)

Source§

fn chain(self, other: U) -> Self::Output

Source§

impl<R0, R1, U> Chain<U> for (R0, R1)

Source§

type Output = (R0, R1, U)

Source§

fn chain(self, other: U) -> Self::Output

Source§

impl<R0, U> Chain<U> for (R0,)

Source§

type Output = (R0, U)

Source§

fn chain(self, other: U) -> Self::Output

Source§

impl<U> Chain<U> for ()

Source§

type Output = U

Source§

fn chain(self, other: U) -> Self::Output

Implementors§

Source§

impl<T> Chain<T> for Identity

Source§

impl<T, Inner, Outer> Chain<T> for Chain<Inner, Outer>

Source§

type Output = Chain<Chain<Inner, Outer>, T>

Source§

impl<T, U> Chain<U> for DefaultSerializer<T>