1mod bits;
2mod carrying;
3mod checked;
4mod cmp;
5mod convert;
6mod endian;
7mod impls;
8mod intrinsics;
9mod math;
10mod num;
11mod overflowing;
12mod saturating;
13mod strict;
14mod widening;
15mod wrapping;
16
17use bnum::BInt;
18
19use crate::bint::{consts::consts_impl, doc};
20
21#[derive(Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)]
31#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
32#[cfg_attr(
33 feature = "borsh",
34 derive(borsh::BorshSerialize, borsh::BorshDeserialize, borsh::BorshSchema)
35)]
36#[repr(transparent)]
37pub struct Int<const N: usize>(pub(super) BInt<N>);
38
39consts_impl!(Int, I, BInt);