Skip to content

Releases: cyphersnake/some-to-err

v0.2.1

08 Apr 17:19
v0.2.1
1fdd5a7
Compare
Choose a tag to compare

Changelog

Features

  • Add SomeToErrElse trait

Refactor

  • [breaking] Rename some_to_err to err_or

Full Changelog: v0.1.1...v0.2.1

v0.1.1

20 Mar 10:38
9687437
Compare
Choose a tag to compare

feat: add SomeToErrElse trait

This release adds the SomeToErrElse trait, which provides a convenient method for converting an Option<T> into a Result<OK, T> by supplying a closure that generates the OK value for the Result when the input is None. The trait also includes an implementation for the Option type.

  • Implement SomeToErrElse for Option<T>
  • Add tests to cover various scenarios
  • Provide detailed rustdoc with examples

v0.0.2

17 Mar 08:40
v0.0.2
ab0c627
Compare
Choose a tag to compare