Skip to content

Result::coalesce #2576

@SoniEx2

Description

@SoniEx2

For use with Vec::binary_search_by (I guess it's technically part of slice), it would be nice to have an Result::coalesce that takes an Result<T, T> and turns it into an T.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions