imp_int 0.3.1

A collection of thinly-wrapped integer types modelling IMP integer semantics
Documentation
imp_int-0.3.1 has been yanked.

imp_int

What is an integer newtype but a miserable pile of macros?

This crate provides the following thinly-wrapped types:

  • u8 => Imp8;
  • u16 => Imp16;
  • u32 => Imp32;
  • u64 => Imp64;
  • u128 => Imp128;
  • usize => ImpSize.

With the bigint feature enabled, it also provides the ImpBigInt type as a wrapper over the num_bigint::BigUint type to provide an arbitrary precision integer with IMP integer semantics.

Installation

# ordinary usage
cargo add imp_int

# usage with the bigint feature enabled
cargo add imp_int --features bigint