numext_fixed_uint_core/lib.rs
1// Copyright 2018-2019 Cryptape Technologies LLC.
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9//! This is a internal crate used by [numext-fixed-uint].
10//!
11//! **Notice:
12//! You should NOT use this crate directly.
13//! Please use [numext-fixed-uint] instead of this crate.**
14//!
15//! [numext-fixed-uint]: https://docs.rs/numext-fixed-uint
16
17extern crate constructor;
18
19use thiserror::Error;
20
21constructor::construct_fixed_uints!(
22 U128 {
23 size = 128,
24 },
25 U160 {
26 size = 160,
27 },
28 U224 {
29 size = 224,
30 },
31 U256 {
32 size = 256,
33 },
34 U384 {
35 size = 384,
36 },
37 U512 {
38 size = 512,
39 },
40 U520 {
41 size = 520,
42 },
43 U1024 {
44 size = 1024,
45 },
46 U2048 {
47 size = 2048,
48 },
49 U4096 {
50 size = 4096,
51 },
52);