Crates.io | among |
lib.rs | among |
version | 0.1.7 |
created_at | 2024-09-02 19:07:15.667853+00 |
updated_at | 2024-10-14 08:25:33.537702+00 |
description | The enum `Among` with variants `Left`, `Middle` and `Right` is a general purpose sum type with three cases. |
homepage | https://github.com/al8n/among |
repository | https://github.com/al8n/among |
max_upload_size | |
id | 1360961 |
size | 121,213 |
The enum Among
with variants Left
, Middle
and Right
is a general purpose sum type with three cases.
English | 简体中文
The enum Among
with variants Left
, Middle
and Right
and trait implementations.
Use with default feature
[dependencies]
among = "0.1"
Use without std
and alloc
[dependencies]
among = { version = "0.1", default-features = false }
Enable futures
feature to enable trait implementation including futures::io::AsyncRead
, futures::io::AsyncBufRead
, futures::io::AsyncWrite
, and futures::io::AsyncSeek
.
[dependencies]
among = { version = "0.1", features = ["futures", "std"] }
Enable tokio
feature to enable trait implementation including tokio::io::AsyncRead
, tokio::io::AsyncBufRead
, tokio::io::AsyncWrite
and tokio::io::AsyncSeek
.
[dependencies]
among = { version = "0.1", features = ["tokio", "std"] }
This code is inspired and modified based on rayon-rs/either
.
among
is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2024 Al Liu.