| Crates.io | xxor |
| lib.rs | xxor |
| version | 0.1.0 |
| created_at | 2025-06-02 20:45:49.964531+00 |
| updated_at | 2025-06-02 20:45:49.964531+00 |
| description | An enum for expressing two valid outcomes: XOR |
| homepage | |
| repository | https://github.com/snqre/xxor/ |
| max_upload_size | |
| id | 1698363 |
| size | 5,213 |
XOR<This, That>โ for when both outcomes are valid, and either is okay.
Where Option<T> means maybe, and Result<T, E> means success or error,
XOR<This, That> means two possible success outcomes โ without the noise of errors or missing values.
XOR<This, That>: holds either This(A) or That(B).map_this, map_that, unwrap_*, etc.).#![no_std] compatible.Debug, Clone, Eq, and PartialEq.enums in small, focused cases.Add to your Cargo.toml:
[dependencies]
xxor = "0.1.0"