malachite_base/num/mod.rs
1// Copyright © 2025 Mikhail Hogrefe
2//
3// This file is part of Malachite.
4//
5// Malachite is free software: you can redistribute it and/or modify it under the terms of the GNU
6// Lesser General Public License (LGPL) as published by the Free Software Foundation; either version
7// 3 of the License, or (at your option) any later version. See <https://www.gnu.org/licenses/>.
8
9#[doc(hidden)]
10#[macro_use]
11pub mod macros;
12
13/// Traits for arithmetic.
14pub mod arithmetic;
15/// Traits for primitive integers or floats and some of their basic functionality.
16pub mod basic;
17/// Traits for comparing the absolute values of numbers for equality or order.
18pub mod comparison;
19/// Traits for converting to and from numbers, converting to and from strings, and extracting
20/// digits.
21pub mod conversion;
22/// Iterators that generate numbers without repetition.
23pub mod exhaustive;
24/// Traits for generating primes, primality testing, and factorization (TODO!)
25pub mod factorization;
26/// [`NiceFloat`](float::NiceFloat), a wrapper around primitive floats.
27pub mod float;
28/// Iterators related to numbers.
29pub mod iterators;
30/// Traits for logic and bit manipulation.
31pub mod logic;
32#[cfg(feature = "random")]
33/// Iterators that generate numbers randomly.
34pub mod random;