XXOR
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.
✨ Features
- ✅
XOR<This, That>: holds eitherThis(A)orThat(B). - 🧼 Clean, focused API (
map_this,map_that,unwrap_*, etc.). - 🔒
#![no_std]compatible. - 🧪 Derives
Debug,Clone,Eq, andPartialEq. - 🎯 Perfect for avoiding new
enums in small, focused cases.
📦 Installation
Add to your Cargo.toml:
[]
= "0.1.0"