|
1 | 1 | //! Stack-allocated big signed integers. |
2 | 2 |
|
3 | | -use crate::{ |
4 | | - Bounded, Choice, ConstOne, ConstZero, Constants, CtEq, CtOption, FixedInteger, Integer, Limb, |
5 | | - NonZero, Odd, One, Signed, Uint, Word, Zero, |
6 | | -}; |
7 | | -use core::fmt; |
8 | | - |
9 | | -#[cfg(feature = "serde")] |
10 | | -use crate::Encoding; |
11 | | -#[cfg(feature = "serde")] |
12 | | -use serdect::serde::{Deserialize, Deserializer, Serialize, Serializer}; |
13 | | - |
14 | 3 | mod add; |
15 | 4 | mod bit_and; |
16 | 5 | mod bit_not; |
@@ -39,6 +28,17 @@ pub(crate) mod types; |
39 | 28 | #[cfg(feature = "rand_core")] |
40 | 29 | mod rand; |
41 | 30 |
|
| 31 | +use crate::{ |
| 32 | + Bounded, Choice, ConstOne, ConstZero, Constants, CtEq, CtOption, FixedInteger, Integer, Limb, |
| 33 | + NonZero, Odd, One, Signed, Uint, Word, Zero, sealed::Sealed, |
| 34 | +}; |
| 35 | +use core::fmt; |
| 36 | + |
| 37 | +#[cfg(feature = "serde")] |
| 38 | +use crate::Encoding; |
| 39 | +#[cfg(feature = "serde")] |
| 40 | +use serdect::serde::{Deserialize, Deserializer, Serialize, Serializer}; |
| 41 | + |
42 | 42 | /// Stack-allocated big _signed_ integer. |
43 | 43 | /// See [`Uint`] for _unsigned_ integers. |
44 | 44 | /// |
@@ -264,6 +264,8 @@ impl<const LIMBS: usize> Integer for Int<LIMBS> { |
264 | 264 | } |
265 | 265 | } |
266 | 266 |
|
| 267 | +impl<const LIMBS: usize> Sealed for Int<LIMBS> {} |
| 268 | + |
267 | 269 | impl<const LIMBS: usize> Signed for Int<LIMBS> { |
268 | 270 | type Unsigned = Uint<LIMBS>; |
269 | 271 |
|
|
0 commit comments