macro_rules! t { ($t:ty) => { ... }; }
Expand description
Convert an unambiguous type path
into RawIdentifiers
.
t!
is a short-hand for “type”. It’s the macro used by Blueprint::prebuilt
.
You should use f!
if you’re invoking other methods on Blueprint
.
§Guide
In the “Cookbook”
section of Pavex’s guide on dependency injection
you can find a collection of reference examples on how to use t!
macro to register different kinds of
types (generic, with lifetimes, etc.) as state inputs with a Blueprint
.