either icon indicating copy to clipboard operation
either copied to clipboard

The enum Either with variants Left and Right is a general purpose sum type with two cases.

Results 18 either issues
Sort by recently updated
recently updated
newest added

Currently, the implementation of `Future` for `Either` requires that both `Future`s resolve to the same type: https://github.com/rayon-rs/either/blob/af9f5fbd8fd6f626121971f810fc2dc7f8290b69/src/lib.rs#L1127-L1141 This limits, which kinds of `Future`s can be expressed using `Either`. It would...

I think the Either crate is really good, and here are some methods I would love to see: ## `flatten` I think there should be a flatten method, like for...

I think it might be useful to implement our (object-safe) trait for either easily with some attribute macro

It's all very generic, so for users ending up at the documentation it's not entirely clear what this is actually good for. Why would one want a type that is...

Inspired by https://github.com/serde-rs/serde/issues/2584, I looked through my dep tree and saw that either includes `serde` with the "derive" feature. Unfortunately, it's not so simple how to remove the feature here....

There's some guidance that suggests `std` is a more idiomatic feature name than `use_std`: https://rust-lang-nursery.github.io/api-guidelines/naming.html#feature-names-are-free-of-placeholder-words-c-feature

Apparently `AsRef` implementation of `Either` lacks an "unsized" marker `?Sized` on `Target`. It prevents of implementing `AsRef` for the `Either`, for instance. While default `Either` doesn't compile ([without the marker...

potential-2.0

Hi everyone, I've just hit an issue while trying to replace an `impl AsRef` with a concrete `Either` type in a return position, here's an example: https://play.rust-lang.org/?gist=1f4771605ae47ea7e4e10881a994a2dc&version=stable&mode=debug&edition=2015 I believe it...

potential-2.0

This might not go anywhere, but here seemed like the right place to open the conversation. I think there is a need for a type that captures the possibility of...

`Either` can gain even more optimized iterator methods by overriding the `try_fold` method added in 1.27; however, this will cause a pretty big bump in the minimum supported rust version...