has_impl

Build Status Latest Version Documentation

Check if trait is implemented for type at compile time

Example

```rust use has_impl::*;

trait Foo {}

impl Foo for i32 {}

fn main() { asserteq!(hasimpl!(i32: Foo), true); } ```

Installing

toml [dependencies] has_impl = "0.1"