# Crate ux [−] [src]

#uX - non-standard-width integers types

When non-standard-width integers is required in an applications, the norm is to use a larger container and make sure the value is within range after manipulation. uX aims to take care of this once and for all by:

- Providing
`u2`

-`u63`

and`i2`

-`i63`

types that should behave as similar as possible to the built in rust types- The methods of the defined types are the same as for the built in types (far from all is implemented at this point but fill out an issue or create a PR if something essential for you is missing)
- Overflow will panic in debug and wrap in release.

- When
`i128`

and`u128`

is stabilized this crate will also support`u65-u127`

and`i65-i127`

- All possible lossless conversions is possible by using
`From`

. - When
`TryFrom`

is stabilized fallible conversions will also be supported.

## Structs

i2 |
The 2-bit signed integer type. |

i3 |
The 3-bit signed integer type. |

i4 |
The 4-bit signed integer type. |

i5 |
The 5-bit signed integer type. |

i6 |
The 6-bit signed integer type. |

i7 |
The 7-bit signed integer type. |

i9 |
The 9-bit signed integer type. |

i10 |
The 10-bit signed integer type. |

i11 |
The 11-bit signed integer type. |

i12 |
The 12-bit signed integer type. |

i13 |
The 13-bit signed integer type. |

i14 |
The 14-bit signed integer type. |

i15 |
The 15-bit signed integer type. |

i17 |
The 17-bit signed integer type. |

i18 |
The 18-bit signed integer type. |

i19 |
The 19-bit signed integer type. |

i20 |
The 20-bit signed integer type. |

i21 |
The 21-bit signed integer type. |

i22 |
The 22-bit signed integer type. |

i23 |
The 23-bit signed integer type. |

i24 |
The 24-bit signed integer type. |

i25 |
The 25-bit signed integer type. |

i26 |
The 26-bit signed integer type. |

i27 |
The 27-bit signed integer type. |

i28 |
The 28-bit signed integer type. |

i29 |
The 29-bit signed integer type. |

i30 |
The 30-bit signed integer type. |

i31 |
The 31-bit signed integer type. |

i33 |
The 33-bit signed integer type. |

i34 |
The 34-bit signed integer type. |

i35 |
The 35-bit signed integer type. |

i36 |
The 36-bit signed integer type. |

i37 |
The 37-bit signed integer type. |

i38 |
The 38-bit signed integer type. |

i39 |
The 39-bit signed integer type. |

i40 |
The 40-bit signed integer type. |

i41 |
The 41-bit signed integer type. |

i42 |
The 42-bit signed integer type. |

i43 |
The 43-bit signed integer type. |

i44 |
The 44-bit signed integer type. |

i45 |
The 45-bit signed integer type. |

i46 |
The 46-bit signed integer type. |

i47 |
The 47-bit signed integer type. |

i48 |
The 48-bit signed integer type. |

i49 |
The 49-bit signed integer type. |

i50 |
The 50-bit signed integer type. |

i51 |
The 51-bit signed integer type. |

i52 |
The 52-bit signed integer type. |

i53 |
The 53-bit signed integer type. |

i54 |
The 54-bit signed integer type. |

i55 |
The 55-bit signed integer type. |

i56 |
The 56-bit signed integer type. |

i57 |
The 57-bit signed integer type. |

i58 |
The 58-bit signed integer type. |

i59 |
The 59-bit signed integer type. |

i60 |
The 60-bit signed integer type. |

i61 |
The 61-bit signed integer type. |

i62 |
The 62-bit signed integer type. |

i63 |
The 63-bit signed integer type. |

u2 |
The 2-bit unsigned integer type. |

u3 |
The 3-bit unsigned integer type. |

u4 |
The 4-bit unsigned integer type. |

u5 |
The 5-bit unsigned integer type. |

u6 |
The 6-bit unsigned integer type. |

u7 |
The 7-bit unsigned integer type. |

u9 |
The 9-bit unsigned integer type. |

u10 |
The 10-bit unsigned integer type. |

u11 |
The 11-bit unsigned integer type. |

u12 |
The 12-bit unsigned integer type. |

u13 |
The 13-bit unsigned integer type. |

u14 |
The 14-bit unsigned integer type. |

u15 |
The 15-bit unsigned integer type. |

u17 |
The 17-bit unsigned integer type. |

u18 |
The 18-bit unsigned integer type. |

u19 |
The 19-bit unsigned integer type. |

u20 |
The 20-bit unsigned integer type. |

u21 |
The 21-bit unsigned integer type. |

u22 |
The 22-bit unsigned integer type. |

u23 |
The 23-bit unsigned integer type. |

u24 |
The 24-bit unsigned integer type. |

u25 |
The 25-bit unsigned integer type. |

u26 |
The 26-bit unsigned integer type. |

u27 |
The 27-bit unsigned integer type. |

u28 |
The 28-bit unsigned integer type. |

u29 |
The 29-bit unsigned integer type. |

u30 |
The 30-bit unsigned integer type. |

u31 |
The 31-bit unsigned integer type. |

u33 |
The 33-bit unsigned integer type. |

u34 |
The 34-bit unsigned integer type. |

u35 |
The 35-bit unsigned integer type. |

u36 |
The 36-bit unsigned integer type. |

u37 |
The 37-bit unsigned integer type. |

u38 |
The 38-bit unsigned integer type. |

u39 |
The 39-bit unsigned integer type. |

u40 |
The 40-bit unsigned integer type. |

u41 |
The 41-bit unsigned integer type. |

u42 |
The 42-bit unsigned integer type. |

u43 |
The 43-bit unsigned integer type. |

u44 |
The 44-bit unsigned integer type. |

u45 |
The 45-bit unsigned integer type. |

u46 |
The 46-bit unsigned integer type. |

u47 |
The 47-bit unsigned integer type. |

u48 |
The 48-bit unsigned integer type. |

u49 |
The 49-bit unsigned integer type. |

u50 |
The 50-bit unsigned integer type. |

u51 |
The 51-bit unsigned integer type. |

u52 |
The 52-bit unsigned integer type. |

u53 |
The 53-bit unsigned integer type. |

u54 |
The 54-bit unsigned integer type. |

u55 |
The 55-bit unsigned integer type. |

u56 |
The 56-bit unsigned integer type. |

u57 |
The 57-bit unsigned integer type. |

u58 |
The 58-bit unsigned integer type. |

u59 |
The 59-bit unsigned integer type. |

u60 |
The 60-bit unsigned integer type. |

u61 |
The 61-bit unsigned integer type. |

u62 |
The 62-bit unsigned integer type. |

u63 |
The 63-bit unsigned integer type. |