Either Left Or Right (elor)

Crate API

elor is a no_std Rust crate with only 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 |