#fundamental #general-purpose

impls_index

Several of macros to put each function under a named macro to index every function in a class

4 releases

0.1.3 Jul 2, 2022
0.1.2 Jun 1, 2022
0.1.1 May 25, 2022
0.1.0 May 15, 2022

#2118 in Development tools

Download history 398/week @ 2023-02-03 474/week @ 2023-02-10 1007/week @ 2023-02-17 668/week @ 2023-02-24 289/week @ 2023-03-03 1033/week @ 2023-03-10 2617/week @ 2023-03-17 587/week @ 2023-03-24 259/week @ 2023-03-31 192/week @ 2023-04-07 1473/week @ 2023-04-14 583/week @ 2023-04-21 1710/week @ 2023-04-28 146/week @ 2023-05-05 139/week @ 2023-05-12 111/week @ 2023-05-19

2,118 downloads per month
Used in 60 crates (6 directly)

MIT license

1MB
28K SLoC

Module :: impls_index

experimental rust-status docs.rs Open in Gitpod discord

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.

Sample

use ::impls_index::*;

impls1!
{
  fn f1() -> i32
  {
    println!( "f1() : 13" );
    13
  }
};

index!
{
  f1,
}

assert_eq!( f1(), 13 );
/* print : f1() : 13 */

To add to your project

cargo add impls_index_meta

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/impls_index_trivial_sample
cargo run

Dependencies

~4MB
~104K SLoC