Vulnerabilities | |||||
---|---|---|---|---|---|
Version | Suggest | Low | Medium | High | Critical |
1.15.0 | 0 | 0 | 0 | 0 | 0 |
1.14.0 | 0 | 0 | 0 | 0 | 0 |
1.13.0 | 0 | 0 | 0 | 0 | 0 |
1.12.0 | 0 | 0 | 0 | 0 | 0 |
1.11.0 | 0 | 0 | 0 | 0 | 0 |
1.10.0 | 0 | 0 | 0 | 0 | 0 |
1.9.0 | 0 | 0 | 0 | 0 | 0 |
1.8.1 | 0 | 0 | 0 | 0 | 0 |
1.8.0 | 0 | 0 | 0 | 0 | 0 |
1.7.0 | 0 | 0 | 0 | 0 | 0 |
1.6.1 | 0 | 0 | 0 | 0 | 0 |
1.6.0 | 0 | 0 | 0 | 0 | 0 |
1.5.3 | 0 | 0 | 0 | 0 | 0 |
1.5.2 | 0 | 0 | 0 | 0 | 0 |
1.5.1 | 0 | 0 | 0 | 0 | 0 |
1.5.0 | 0 | 0 | 0 | 0 | 0 |
1.4.0 | 0 | 0 | 0 | 0 | 0 |
1.3.0 | 0 | 0 | 0 | 0 | 0 |
1.2.0 | 0 | 0 | 0 | 0 | 0 |
1.1.0 | 0 | 0 | 0 | 0 | 0 |
1.0.3 | 0 | 0 | 0 | 0 | 0 |
1.0.2 | 0 | 0 | 0 | 0 | 0 |
1.0.1 | 0 | 0 | 0 | 0 | 0 |
1.0.0 | 0 | 0 | 0 | 0 | 0 |
0.1.7 | 0 | 0 | 0 | 0 | 0 |
0.1.6 | 0 | 0 | 0 | 0 | 0 |
0.1.5 | 0 | 0 | 0 | 0 | 0 |
0.1.4 | 0 | 0 | 0 | 0 | 0 |
0.1.3 | 0 | 0 | 0 | 0 | 0 |
0.1.2 | 0 | 0 | 0 | 0 | 0 |
0.1.1 | 0 | 0 | 0 | 0 | 0 |
0.1.0 | 0 | 0 | 0 | 0 | 0 |
1.15.0 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0The enum Either
with variants Left
and Right
and trait
implementations including Iterator, Read, Write.
Either has methods that are similar to Option and Result.
Includes convenience macros try_left!()
and try_right!()
to use for
short-circuiting logic.
Please read the API documentation here
__
|build_status|_ |crates|_
.. |build_status| image:: https://github.com/rayon-rs/either/workflows/CI/badge.svg?branch=main .. _build_status: https://github.com/rayon-rs/either/actions
.. |crates| image:: https://img.shields.io/crates/v/either.svg .. _crates: https://crates.io/crates/either
How to use with cargo::
[dependencies]
either = "1"
1.15.0
Fix serde
support when building without std
, by @klkvr (#119)
Use a more common std
feature for default enablement, deprecating
the use_std
feature as a mere alias of the new name.
1.14.0
MSRV: either
now requires Rust 1.63 or later.
Implement fmt::Write
for Either
, by @yotamofek (#113)
Replace Into<Result> for Either
with From<Either> for Result
, by @cuviper (#118)
1.13.0
.cloned()
and .copied()
, by @ColonelThirtyTwo (#107)1.12.0
MSRV: either
now requires Rust 1.37 or later.
Specialize nth_back
for Either
and IterEither
, by @cuviper (#106)
1.11.0
IntoEither
that is useful to convert to Either
in method chains,
by @SFM61319 (#101)1.10.0
.factor_iter()
, .factor_iter_mut()
, and .factor_into_iter()
that return Either
items, plus .iter()
and .iter_mut()
to convert to direct
reference iterators; by @aj-bagwell and @cuviper (#91)1.9.0
.map_either()
and .map_either_with()
, by @nasadorian (#82)1.8.1
1.8.0
MSRV: either
now requires Rust 1.36 or later.
Add new methods .as_pin_ref()
and .as_pin_mut()
to project a
pinned Either
as inner Pin
variants, by @cuviper (#77)
Implement the Future
trait, by @cuviper (#77)
Specialize more methods of the io
traits, by @Kixunil and @cuviper (#75)
1.7.0
MSRV: either
now requires Rust 1.31 or later.
Export the macro for_both!
, by @thomaseizinger (#58)
Implement the io::Seek
trait, by @Kerollmops (#60)
Add new method .either_into()
for Into
conversion, by @TonalidadeHidrica (#63)
Add new methods .factor_ok()
, .factor_err()
, and .factor_none()
,
by @zachs18 (#67)
Specialize source
in the Error
implementation, by @thomaseizinger (#69)
Specialize more iterator methods and implement the FusedIterator
trait,
by @Ten0 (#66) and @cuviper (#71)
Specialize Clone::clone_from
, by @cuviper (#72)
1.6.1
.expect_left()
, .unwrap_left()
,
and equivalents on the right, by @spenserblack (#51)1.6.0
serde_untagged
and serde_untagged_optional
to customize
how Either
fields are serialized in other types, by @MikailBag (#49)1.5.3
.map()
for Either<T, T>
by @nvzqz (#40).1.5.2
.left_or()
, .left_or_default()
, .left_or_else()
,
and equivalents on the right, by @DCjanus (#36)1.5.1
AsRef
and AsMut
implementations for common unsized types:
str
, [T]
, CStr
, OsStr
, and Path
, by @mexus (#29)1.5.0
.factor_first()
, .factor_second()
and .into_inner()
by @mathstuf (#19)1.4.0
.into_iter()
by @cuviper (#12)1.3.0
1.2.0
.either_with()
by @Twey (#13)1.1.0
left_and_then
, right_and_then
by @rampantmonkey1.0.3
1.0.2
Iterator
methodsExtend
for Either<L, R>
if L, R
do.1.0.1
Iterator
impl for Either
to forward .fold()
.1.0.0
use_std
so that you can opt out of linking to
std.0.1.7
.map_left()
, .map_right()
and .either()
.0.1.3
0.1.2
try_left!
and try_right!
.0.1.1
0.1.0
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0 or the MIT license https://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.