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/FnOncewhich current entity does not implement you will get compile-time error instead offalse.
Macrosยง
- implements
- Macro
implementsto answer the question: does it implement a trait? - instance_
of - Macro
instance_ofto answer the question: does it implement a trait? Alias of the macroimplements.