option-inspect-none 1.0.0

The crate contains a trait, that implements the inspect_none(..) method on Options.
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 2.78 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 133.03 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • bytifex/option-inspect-none
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • RoGer2856

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