Skip to main content

ty

Macro ty 

Source
macro_rules! ty {
    ($t:ty) => { ... };
}
Expand description

Build a syn::Type from a bare Rust type token: ty!(i32). The type argument of decl methods like ConvertSourceDecl::from_type — always yields the concrete syn::Type, so no inference context is needed (see ident! for the E0283 background).