Crate instance_of[][src]

Expand description

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

This solution has a limitation:

  • In case enity is a function and trat is Fn/FnMut/FnOnce which current entity does not implement you will get compile-time error instead of false.

Macros

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

Macro instance_of to answer the question: does it implement a trait? Alias of the macro implements.