Releases: cyphersnake/some-to-err
Releases · cyphersnake/some-to-err
v0.2.1
Changelog
Features
- Add
SomeToErrElse
trait
Refactor
- [breaking] Rename
some_to_err
toerr_or
Full Changelog: v0.1.1...v0.2.1
v0.1.1
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
forOption<T>
- Add tests to cover various scenarios
- Provide detailed rustdoc with examples