Macro test_tools::exposed::meta::dependency::impls_index::impls_index::exposed::impls_optional
source ยท macro_rules! impls_optional { () => { ... }; ( $( #[ $Meta : meta ] )* $Vis : vis fn $Name : ident $( $Rest : tt )* ) => { ... }; ( @DefineFn @Meta{ $( #[ $Meta : meta ] )* } @Vis{ $Vis : vis } @Name{ $Name : ident } @Rest $Item : item $( $Rest : tt )* ) => { ... }; }
Expand description
Define implementation putting each function under a macro.
Use index! to generate code for each elment. Unlike elements of impls_optional!, elements of [impls] are mandatory to be used in index!.