[−][src]Crate inspector
Crate inspector
extends popular data structures (such as Option
and Result
)
with additional methods for inspecting their payload. It is inspired by the Iterator::inspect
.
Since no such methods are available by default on Option
and Result
types, this crate
implements a new traits for these types, which augment the respective types with various
inspection capabilities.
Implementation and availability of each trait is guarded by the dedicated feature, so that you can choose which one is available.
Features
option
- enables traitOptionInspector
result
- enables traitResultInspector
iter
- enables traitIterInspector
(broken at the moment)futures
- enables traitFuturesInspector
Traits
FuturesInspector | |
OptionInspector | |
ResultInspector |