module::implements

Macro to answer the question: does it implement a trait?

This solution has a limitation:

Sample

``` rust sample test use implements::*;

dbg!( implements!( 13i32 => Copy ) ); // < implements!( 13i32 => Copy ) : true dbg!( implements!( Box::new( 13i32 ) => Copy ) ); // < implements!( 13i32 => Copy ) : false ```

To add to your project

cargo add implements

Try out from the repository

shell test git clone https://github.com/Wandalen/wTools cd wTools cd sample/rust/implements_trivial cargo run