pub trait SecondElementIs<P>: Sealed { }
Available on crate feature typed-routing only.
Expand description

Utility trait used with RouterExt to ensure the second element of a tuple type is a given type.

If you see it in type errors its most likely because the second argument to your handler doesn’t implement TypedPath.

You normally shouldn’t have to use this trait directly.

It is sealed such that it cannot be implemented outside this crate.

Implementations on Foreign Types§

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where P: TypedPath,

source§

impl<M, P, T1, T2, T3> SecondElementIs<P> for (M, P, T1, T2, T3)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where P: TypedPath,

source§

impl<M, P, E> SecondElementIs<P> for (M, Result<P, E>)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4> SecondElementIs<P> for (M, P, T1, T2, T3, T4)where P: TypedPath,

source§

impl<M, P, T1> SecondElementIs<P> for (M, Option<P>, T1)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7)where P: TypedPath,

source§

impl<M, P, T1, T2> SecondElementIs<P> for (M, Option<P>, T1, T2)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7)where P: TypedPath,

source§

impl<M, P> SecondElementIs<P> for (M, Option<P>)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where P: TypedPath,

source§

impl<M, P, E, T1, T2> SecondElementIs<P> for (M, Result<P, E>, T1, T2)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where P: TypedPath,

source§

impl<M, P, T1, T2> SecondElementIs<P> for (M, P, T1, T2)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)where P: TypedPath,

source§

impl<M, P> SecondElementIs<P> for (M, P)where P: TypedPath,

source§

impl<M, P, T1, T2, T3> SecondElementIs<P> for (M, Option<P>, T1, T2, T3)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where P: TypedPath,

source§

impl<M, P, T1> SecondElementIs<P> for (M, P, T1)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where P: TypedPath,

source§

impl<M, P, E, T1> SecondElementIs<P> for (M, Result<P, E>, T1)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> SecondElementIs<P> for (M, Option<P>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where P: TypedPath,

source§

impl<M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> SecondElementIs<P> for (M, P, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where P: TypedPath,

source§

impl<M, P, E, T1, T2, T3, T4, T5, T6, T7, T8, T9> SecondElementIs<P> for (M, Result<P, E>, T1, T2, T3, T4, T5, T6, T7, T8, T9)where P: TypedPath,

Implementors§