#![cfg_attr(not(any(test, feature = "std")), no_std)]
#![cfg_attr(
not(test),
deny(
clippy::indexing_slicing,
clippy::unwrap_used,
clippy::expect_used,
clippy::panic,
clippy::exhaustive_structs,
clippy::exhaustive_enums,
missing_debug_implementations,
)
)]
mod compact;
mod decimal;
mod integer;
mod ops;
mod scientific;
mod uint_iterator;
#[cfg(feature = "ryu")]
pub use decimal::FloatPrecision;
#[cfg(feature = "ryu")]
#[doc(no_inline)]
pub use FloatPrecision as DoublePrecision;
pub use compact::CompactDecimal;
pub use decimal::FixedDecimal;
pub use decimal::RoundingIncrement;
pub use decimal::Sign;
pub use decimal::SignDisplay;
use displaydoc::Display;
pub use integer::FixedInteger;
pub use scientific::ScientificDecimal;
#[derive(Display, Debug, Copy, Clone, PartialEq)]
#[non_exhaustive]
pub enum FixedDecimalError {
#[displaydoc("Magnitude or number of digits exceeded")]
Limit,
#[displaydoc("Failed to parse the input string")]
Syntax,
}
#[doc(no_inline)]
pub use FixedDecimalError as Error;
#[cfg(feature = "std")]
impl std::error::Error for Error {}