quantities/
prelude.rs

1// ---------------------------------------------------------------------------
2// Copyright:   (c) 2021 ff. Michael Amrhein (michael@adrhinum.de)
3// License:     This program is part of a larger application. For license
4//              details please read the file LICENSE.TXT provided together
5//              with the application.
6// ---------------------------------------------------------------------------
7// $Source:     src/prelude.rs $
8// $Revision:   2024-07-26T21:35:21+02:00 $
9
10//! This module reexports all macros and types needed to define a quantity.
11
12#[doc(hidden)]
13pub use alloc::{borrow::ToOwned, string::String};
14#[doc(hidden)]
15pub use core::cmp::Ordering;
16#[doc(hidden)]
17pub use core::fmt;
18#[doc(hidden)]
19pub use core::ops::{Add, Div, Mul, Sub};
20
21pub use qty_macros::quantity;
22
23pub use crate::{
24    Amnt, AmountT, HasRefUnit, LinearScaledUnit, Quantity, Rate, SIPrefix,
25    Unit, ONE,
26};
27#[cfg(feature = "fpdec")]
28pub use crate::{Dec, Decimal};