Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Implement trait IntoEither #101

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Conversation

SFM61319
Copy link
Contributor

Add:

  • Trait IntoEither
    • into_either: Conditionally convert any sized type into any variant of Either.
    • into_either_with: Like into_either, but takes a predicate function instead.
  • Impl IntoEither for generic type T, where T is Sized

Close #99

@SFM61319 SFM61319 marked this pull request as ready for review March 13, 2024 10:04
src/into_either.rs Outdated Show resolved Hide resolved
src/into_either.rs Outdated Show resolved Hide resolved
Add:

+ Trait `IntoEither`
  - `into_either`: Conditionally convert any sized type into any variant of `Either`.
  - `into_either_with`: Like `into_either`, but takes a predicate function instead.
+ Impl `IntoEither` for generic type `T`, where `T` is `Sized`

Close rayon-rs#99
@cuviper
Copy link
Member

cuviper commented Apr 13, 2024

Thanks!

@cuviper cuviper added this pull request to the merge queue Apr 13, 2024
Merged via the queue into rayon-rs:main with commit e385751 Apr 13, 2024
10 checks passed
tamird added a commit to tamird/aya that referenced this pull request Apr 13, 2024
tamird added a commit to aya-rs/aya that referenced this pull request Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Conditionally applied methods
2 participants