Crate irrelevant

Source
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 like irrelevant.
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 like irrelevant.

Structs§

ExplicitlyIgnoredValue
This marker signifies that a value has been explicitly ignored.