1#![doc = include_str!("../README.md")]
2
3#![cfg_attr(no_std, no_std)]
4#![warn(missing_docs)]
5
6mod impl_from;
7mod impl_misc;
8mod impl_ops;
9
10pub mod backing_types;
11pub use backing_types::{f_iof, i_iof, u_iof};
12
13#[cfg(with_impl_hash)]
14mod hash;
15
16mod cmp;
17mod encode;
18
19#[cfg(feature = "num-traits")]
20mod num_traits_impl;
21
22mod str_conv;
23pub mod error;
24pub use error::ConversionError;
25
26#[cfg_attr(feature = "more-serde", derive(serde::Serialize, serde::Deserialize))]
30#[derive(Copy, Clone)]
31pub enum IntegerOrFloat {
32 Integer(i_iof),
35 Float(f_iof),
38}
39pub use IntegerOrFloat::{Float, Integer};