Demo crate for rust-lang/rfcs#2973
Notes:
- names the type
ErrorCode
- uses the
Neg
+ unsigned alternative representation - defines error codes for macOS, FreeBSD, and some Linux architectures (x86 + MIPS)
- doesn't have
PartialEq<isize>
forNeg
because it's midnight and I don't want to stare at bit arithmetic any more right now.