Skip to content

Should 'ExactlyOneError' implement std-'Error'? #482

Closed
@njam

Description

@njam

The exactly_one() function was added in #310:

exactly_one(self) -> Result<Self::Item, ExactlyOneError<Self>> 

For using the early return operator ? on its result, it would be nice if ExactlyOneError would implement Error. Or is there any reason not to?

cc @Xaeroxe @Centril @bluss

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions