1#![doc = include_str!("../README.md")]
16#![cfg_attr(nightly, feature(const_trait_impl))]
17#![cfg_attr(nightly, feature(step_trait))]
18
19
20#[allow(unused_extern_crates)]
21extern crate self as fixed_num;
22
23pub mod ops;
24pub mod dec19x19;
25pub mod i128_ops;
26mod serde;
27
28pub use dec19x19::Dec19x19;
29
30pub mod traits {
35 pub use crate::ops::traits::*;
36 pub use fixed_num_helper::Rand as _;
37}
38pub use traits::*;
39
40pub trait UnwrapAll {
45 type Output;
46 fn unwrap_all(self) -> Self::Output;
47}
48
49impl<T> UnwrapAll for Option<T> {
50 type Output = T;
51 fn unwrap_all(self) -> Self::Output {
52 #[expect(clippy::unwrap_used)]
53 self.unwrap()
54 }
55}
56
57impl UnwrapAll for Dec19x19 {
58 type Output = Self;
59 fn unwrap_all(self) -> Self::Output {
60 self
61 }
62}