is_trait 0.1.0

Add a macro to check if a type implements a trait at runtime
Documentation

This crate adds a is_trait! macro for getting a runtime value for if a type implements a trait This can be useful for test, where you can have a test fail instead of getting a compile error Example:

use is_trait::is_trait;

struct Thing;
struct OtherThing;
trait SomeTrait {}
impl SomeTrait for Thing {}
assert!(is_trait!(Thing, SomeTrait));
assert!(is_trait!(OtherThing, SomeTrait)); // FAILS