#options #inspect #inspect-none

option-inspect-none

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

1 stable release

1.0.0 Feb 9, 2024

#44 in #inspect

Download history 1/week @ 2024-11-20 4/week @ 2024-11-27 10/week @ 2024-12-04 47/week @ 2024-12-11 30/week @ 2024-12-18 49/week @ 2025-01-08 68/week @ 2025-01-15 43/week @ 2025-01-22 34/week @ 2025-01-29 21/week @ 2025-02-05 5/week @ 2025-02-12 18/week @ 2025-02-19 23/week @ 2025-02-26

75 downloads per month

MIT license

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);

No runtime deps