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 it’s 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.