Skip to content

[Feature Reguest] Error trait #15

@Iizuki

Description

@Iizuki

Summary

Could we add an Error implementation to EitherOrBoths where both type parameters implement Error themselves? Similar to the either crate.

A little care would have to be taken to clearly indicate the variant in the error messages etc.

Use cases

This would allow EitherOrBoths to compose better with other Result/Error types, e.g. when using anyhow. Although the existing transpose methods are a great help already.

PS

This is a neat crate with a plethora of niceties already implemented!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions