option-inspect-none 1.0.0

The crate contains a trait, that implements the inspect_none(..) method on Options.
Documentation

option-inspect-none

The crate contains a trait, that implements the inspect_none(..) method on Options.

Usage example

let mut inspector_function_called = false;
None::<()>.inspect_none(|| inspector_function_called = true);
assert!(inspector_function_called);