Skip to content

Result::coalesce #2576

Closed
Closed

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

  1. Centril commented on Oct 24, 2018

    @Centril
    Contributor

    Decided against in rust-lang/rust#54219; please direct any new information that way.

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