pub trait FirstElementIs<P>: Sealed { }
Expand description

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

If you see it in type errors its most likely because the first 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

Implementors