6 stable releases
| 1.1.4 | Jan 4, 2023 |
|---|---|
| 1.1.3 | Oct 5, 2022 |
| 1.1.2 | Jul 19, 2022 |
| 1.1.1 | May 6, 2022 |
| 1.0.0 | Apr 5, 2022 |
#1643 in Rust patterns
Used in 4 crates
63KB
1.5K
SLoC
Either Left Or Right (elor)
elor is a no_std Rust crate with one simple type; Either.
It represents a value that's of one type or another, and implements various functionalities depending on
the attributes of those types
Features
| Name | Description | Dependencies |
|---|---|---|
std |
Allows the usage of standard library functionality. Enabled by default and mutually exclusive with alloc |
Standard library |
alloc |
Allows for heap allocation in the absence of the standard library. Mutually exclusive with std |
Alloc library |
serialize |
Allow for serialization and deserialization | serde |
random |
Allows generating random Either's |
rand |
async |
Allows async polling of async Either's |
futures |
macro |
Allows for the implementation of functionality geared towards the development of procedural macros | quote, syn and proc_macro2 |
Dependencies
~1–1.7MB
~39K SLoC