option-inspect-none

Crates.iooption-inspect-none
lib.rsoption-inspect-none
version1.0.0
sourcesrc
created_at2024-02-09 20:28:16.049271
updated_at2024-02-09 20:28:16.049271
descriptionThe crate contains a trait, that implements the inspect_none(..) method on Options.
homepage
repositoryhttps://github.com/bytifex/option-inspect-none.git
max_upload_size
id1134307
size3,092
RoGer (RoGer2856)

documentation

README

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);
Commit count: 0

cargo fmt