Crate quote_alias
source ·Expand description
The alias!
macro can be used to assign token streams to convenient identifiers.
use quote::quote;
use quote_alias::alias;
alias! {
Foo(my_crate::Foo),
}
// same as: quote! { my_crate::Foo::new() };
let create_foo = quote! { #Foo::new() };
See alias!
for more detailed documentation and usage examples.
Macros§
- Assigns a token stream to an identifier.