| 1 |
- 1.18.0 - 2026-08-20 |
| 2 |
- Add trait impls akin to `Itertools::partition_map`, by @cuviper (#144) |
| 3 |
- `Extend<Either<L, R>> for (A, B)` |
| 4 |
- `FromIterator<Either<L, R>> for (A, B)` |
| 5 |
|
| 6 |
- 1.17.0 - 2026-07-24 |
| 7 |
- Add implementations for all `std::fmt` traits, by @msrd0 (#141) |
| 8 |
|
| 9 |
- 1.16.0 - 2026-05-20 |
| 10 |
- Add many new methods dealing with each side, by @A4-Tacks: |
| 11 |
- `inspect_left` and `inspect_right` (#124) |
| 12 |
- `left_and` and `right_and` (#125) |
| 13 |
- `is_left_and` and `is_right_and` (#126) |
| 14 |
- `map_left_or` and `map_right_or` (#127) |
| 15 |
- Add a version of `for_both!` with a single `ident`, by @A4-Tacks (#128) |
| 16 |
- Add a `map_both!` macro, by @JohnScience (#109) and @ronnodas (#137) |
| 17 |
|
| 18 |
- 1.15.0 - 2025-03-05 |
| 19 |
- Fix `serde` support when building without `std`, by @klkvr (#119) |
| 20 |
- Use a more common `std` feature for default enablement, deprecating the |
| 21 |
`use_std` feature as a mere alias of the new name. |
| 22 |
|
| 23 |
- 1.14.0 - 2025-02-23 |
| 24 |
- **MSRV**: `either` now requires Rust 1.63 or later. |
| 25 |
- Implement `fmt::Write` for `Either`, by @yotamofek (#113) |
| 26 |
- Replace `Into<Result> for Either` with `From<Either> for Result`, by |
| 27 |
@cuviper (#118) |
| 28 |
|
| 29 |
- 1.13.0 - 2024-06-25 |
| 30 |
- Add new methods `.cloned()` and `.copied()`, by @ColonelThirtyTwo (#107) |
| 31 |
|
| 32 |
- 1.12.0 - 2024-05-16 |
| 33 |
- **MSRV**: `either` now requires Rust 1.37 or later. |
| 34 |
- Specialize `nth_back` for `Either` and `IterEither`, by @cuviper (#106) |
| 35 |
|
| 36 |
- 1.11.0 - 2024-04-13 |
| 37 |
- Add new trait `IntoEither` that is useful to convert to `Either` in method |
| 38 |
chains, by @SFM61319 (#101) |
| 39 |
|
| 40 |
- 1.10.0 - 2024-02-10 |
| 41 |
- Add new methods `.factor_iter()`, `.factor_iter_mut()`, and |
| 42 |
`.factor_into_iter()` that return `Either` items, plus `.iter()` and |
| 43 |
`.iter_mut()` to convert to direct reference iterators; by @aj-bagwell and |
| 44 |
@cuviper (#91) |
| 45 |
|
| 46 |
- 1.9.0 - 2023-07-22 |
| 47 |
- Add new methods `.map_either()` and `.map_either_with()`, by @nasadorian |
| 48 |
(#82) |
| 49 |
|
| 50 |
- 1.8.1 - 2023-01-26 |
| 51 |
- Clarified that the multiple licenses are combined with OR. |
| 52 |
|
| 53 |
- 1.8.0 - 2022-08-17 |
| 54 |
- **MSRV**: `either` now requires Rust 1.36 or later. |
| 55 |
- Add new methods `.as_pin_ref()` and `.as_pin_mut()` to project a pinned |
| 56 |
`Either` as inner `Pin` variants, by @cuviper (#77) |
| 57 |
- Implement the `Future` trait, by @cuviper (#77) |
| 58 |
- Specialize more methods of the `io` traits, by @Kixunil and @cuviper (#75) |
| 59 |
|
| 60 |
- 1.7.0 - 2022-06-29 |
| 61 |
- **MSRV**: `either` now requires Rust 1.31 or later. |
| 62 |
- Export the macro `for_both!`, by @thomaseizinger (#58) |
| 63 |
- Implement the `io::Seek` trait, by @Kerollmops (#60) |
| 64 |
- Add new method `.either_into()` for `Into` conversion, by |
| 65 |
@TonalidadeHidrica (#63) |
| 66 |
- Add new methods `.factor_ok()`, `.factor_err()`, and `.factor_none()`, by |
| 67 |
@zachs18 (#67) |
| 68 |
- Specialize `source` in the `Error` implementation, by @thomaseizinger (#69) |
| 69 |
- Specialize more iterator methods and implement the `FusedIterator` trait, |
| 70 |
by @Ten0 (#66) and @cuviper (#71) |
| 71 |
- Specialize `Clone::clone_from`, by @cuviper (#72) |
| 72 |
|
| 73 |
- 1.6.1 - 2020-09-16 |
| 74 |
- Add new methods `.expect_left()`, `.unwrap_left()`, and equivalents on the |
| 75 |
right, by @spenserblack (#51) |
| 76 |
|
| 77 |
- 1.6.0 - 2020-08-10 |
| 78 |
- Add new modules `serde_untagged` and `serde_untagged_optional` to customize |
| 79 |
how `Either` fields are serialized in other types, by @MikailBag (#49) |
| 80 |
|
| 81 |
- 1.5.3 - 2019-09-13 |
| 82 |
- Add new method `.map()` for `Either<T, T>` by @nvzqz (#40). |
| 83 |
|
| 84 |
- 1.5.2 - 2019-04-02 |
| 85 |
- Add new methods `.left_or()`, `.left_or_default()`, `.left_or_else()`, and |
| 86 |
equivalents on the right, by @DCjanus (#36) |
| 87 |
|
| 88 |
- 1.5.1 - 2019-02-21 |
| 89 |
- Add `AsRef` and `AsMut` implementations for common unsized types: `str`, |
| 90 |
`[T]`, `CStr`, `OsStr`, and `Path`, by @mexus (#29) |
| 91 |
|
| 92 |
- 1.5.0 - 2018-03-25 |
| 93 |
- Add new methods `.factor_first()`, `.factor_second()` and `.into_inner()` |
| 94 |
by @mathstuf (#19) |
| 95 |
|
| 96 |
- 1.4.0 - 2017-11-14 |
| 97 |
- Add inherent method `.into_iter()` by @cuviper (#12) |
| 98 |
|
| 99 |
- 1.3.0 - 2017-10-15 |
| 100 |
- Add opt-in `serde` support by @hcpl |
| 101 |
|
| 102 |
- 1.2.0 - 2017-09-28 |
| 103 |
- Add method `.either_with()` by @Twey (#13) |
| 104 |
|
| 105 |
- 1.1.0 - 2017-03-25 |
| 106 |
- Add methods `left_and_then`, `right_and_then` by @rampantmonkey |
| 107 |
- Include license files in the repository and released crate |
| 108 |
|
| 109 |
- 1.0.3 - 2017-02-10 |
| 110 |
- Add crate categories |
| 111 |
|
| 112 |
- 1.0.2 - 2016-11-13 |
| 113 |
- Forward more `Iterator` methods |
| 114 |
- Implement `Extend` for `Either<L, R>` if `L, R` do. |
| 115 |
|
| 116 |
- 1.0.1 - 2016-10-21 |
| 117 |
- Fix `Iterator` impl for `Either` to forward `.fold()`. |
| 118 |
|
| 119 |
- 1.0.0 - 2016-09-23 |
| 120 |
- Add default crate feature `use_std` so that you can opt out of |
| 121 |
linking to std. |
| 122 |
|
| 123 |
- 0.1.7 - 2016-09-03 |
| 124 |
- Add methods `.map_left()`, `.map_right()` and `.either()`. |
| 125 |
- Add more documentation |
| 126 |
|
| 127 |
- 0.1.3 - 2015-09-25 |
| 128 |
- Implement `Display`, `Error` |
| 129 |
|
| 130 |
- 0.1.2 - 2015-09-20 |
| 131 |
- Add macros `try_left!` and `try_right!`. |
| 132 |
|
| 133 |
- 0.1.1 - 2015-09-16 |
| 134 |
- Implement `Deref`, `DerefMut` |
| 135 |
|
| 136 |
- 0.1.0 - 2015-09-14 |
| 137 |
- Initial release |
| 138 |
- Support `Iterator`, `Read`, `Write` |