1 stable release
1.0.0 | Feb 9, 2024 |
---|
#33 in #inspect
3KB
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);