Macro syn_lite::parse_generics
source ยท macro_rules! parse_generics { ( $([ $($before:tt)* ])? { <> $($rest:tt)* } $([ $($after:tt)* ])? => $($out_macro_and_bang:tt)+ ) => { ... }; ( $([ $($before:tt)* ])? { <$( $($lt:lifetime)? $($tp1:ident $($tp2:ident)?)? $( : $($bound_lt:lifetime)? $(+ $bounds_lt:lifetime)* $( $( + $({$plus_ignore:tt })? )? $( ? $([$relax_ignore:tt])? )? $bounds:path )* )? $( = $($default_lit:literal)? $({ $($default_const_block:tt)* })? $($default_ty:ty)? )? ),+ > $($rest:tt)* } $([ $($after:tt)* ])? => $($out_macro_and_bang:tt)+ ) => { ... }; ( $([ $($before:tt)* ])? { $($rest:tt)* } $([ $($after:tt)* ])? => $($out_macro_and_bang:tt)+ ) => { ... }; }
Expand description
Generics inside <...> but without < > and without where clause.