Skip to content

Release v1.3.0: Enhanced Debuggability & Chaining

Latest

Choose a tag to compare

@ttheghost ttheghost released this 13 Nov 00:05
· 6 commits to main since this release

This release introduces new utility functions for debugging and logging without breaking existing chains of operations.

New Features

  • inspect(fn): This method allows you to "peek" at an Ok value, run a function with it (e.g., for logging), and then pass the original Result object on. It is ignored if the Result is an Err.
  • inspect_err(fn): This method does the same, but for Err values. It allows you to inspect, log, or perform a side-effect on an error without consuming it. It is ignored if the Result is Ok.

Improvements

  • Internal implementation of map_err has been refactored for improved robustness (non-breaking change).