Documentation Crate

based

based provides support for custom numerical bases. based does not support multi-character digits.

Example

```rust use based::{Base, NumeralSystem};

let base16: Base = "0123456789abcdef".parse().unwrap(); let val: usize = base16.decode("10").unwrap(); asserteq!(val, 16); asserteq!(base16.encode(16 as usize).unwrap(), "10") ```