has_impl 0.1.0

Check if trait is implemented for type in compile time
Documentation

has_impl

Build Status Latest Version Documentation

Check if trait is implemented for type at compile time

Example

use has_impl::*;

trait Foo {}

impl Foo for i32 {}

fn main() {
	assert_eq!(has_impl!(i32: Foo), true);
}

Installing

[dependencies]
has_impl = "0.1"