| Crates.io | impls_index |
| lib.rs | impls_index |
| version | 0.11.0 |
| created_at | 2022-05-15 21:57:14.558233+00 |
| updated_at | 2025-06-21 15:17:59.774548+00 |
| description | Several of macros to put each function under a named macro to index every function in a class. |
| homepage | https://github.com/Wandalen/wTools/tree/master/module/core/impls_index |
| repository | https://github.com/Wandalen/wTools/tree/master/module/core/impls_index |
| max_upload_size | |
| id | 587357 |
| size | 45,715 |
Several of macros to put each function under a named macro to index every function in a class.
It encourages writing better code, having index of components stripped of details of implementation is very important for comprehension of the code and ability to see the big picture.
use ::impls_index::*;
impls1!
{
fn f1() -> i32
{
println!( "f1() : 13" );
13
}
};
index!
{
f1,
}
assert_eq!( f1(), 13 );
/* print : f1() : 13 */
cargo add impls_index_meta
git clone https://github.com/Wandalen/wTools
cd wTools
cd examples/impls_index_trivial
cargo run