Add public API and docs #1

Open
noteuclid wants to merge 8 commits from api into master
Showing only changes of commit 3c3e6ca897 - Show all commits

View File

@ -5,10 +5,10 @@ mod ops;
pub const M_BITS: u8 = 5;
pub const E_BITS: u8 = 3;
const E_CAP: u8 = 4;
pub const E_MAX: u8 = E_CAP - 1;
static_assertions::const_assert_eq!(M_BITS + E_BITS, 8);
const E_MAX: u8 = E_CAP - 1;
pub const EXACT_INT_MAX: u8 = if E_MAX > M_BITS {
2 << M_BITS
} else {