#![doc = include_str!("../README.md")]
#![cfg_attr(nightly, feature(const_trait_impl))]
#![cfg_attr(nightly, feature(step_trait))]
#[allow(unused_extern_crates)]
extern crate self as fixed_num;
pub mod ops;
pub mod dec19x19;
pub mod i128_ops;
mod serde;
pub use dec19x19::Dec19x19;
pub mod traits {
pub use crate::ops::traits::*;
pub use fixed_num_helper::Rand as _;
}
pub use traits::*;
pub trait UnwrapAll {
type Output;
fn unwrap_all(self) -> Self::Output;
}
impl<T> UnwrapAll for Option<T> {
type Output = T;
fn unwrap_all(self) -> Self::Output {
#[expect(clippy::unwrap_used)]
self.unwrap()
}
}
impl UnwrapAll for Dec19x19 {
type Output = Self;
fn unwrap_all(self) -> Self::Output {
self
}
}