Expand description
This crate contains macros for ignoring variables in a more explicit fashion. It allows you to specify why a variable is ignored, and enforce certain assumptions about its value or type. It also prevents you from accidentally using an ingored variable by automatically shadowing it.
Macros§
- debug_
irrelevant - A version of
irrelevant
that only runs checks in debug mode. Besides that, it behaves exactly likeirrelevant
. - irrelevant
- This macro allows you to explicitly ignore a value, provide a reason for ignoring it, and automatically check your assumptions.
- panic_
irrelevant - A version of
irrelevant
that panics when an assumption is violated. Besides that, it behaves exactly likeirrelevant
.
Structs§
- Explicitly
Ignored Value - This marker signifies that a value has been explicitly ignored.