Skip to content

Result::coalesce #2576

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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