malachite_bigint/
lib.rs

1#![allow(
2    unstable_name_collisions,
3    clippy::assertions_on_constants,
4    clippy::cognitive_complexity,
5    clippy::many_single_char_names,
6    clippy::range_plus_one,
7    clippy::suspicious_arithmetic_impl,
8    clippy::suspicious_op_assign_impl,
9    clippy::too_many_arguments,
10    clippy::type_complexity,
11    clippy::upper_case_acronyms,
12    clippy::multiple_bound_locations
13)]
14#![warn(
15    clippy::cast_lossless,
16    clippy::explicit_into_iter_loop,
17    clippy::explicit_iter_loop,
18    clippy::filter_map_next,
19    clippy::large_digit_groups,
20    clippy::manual_filter_map,
21    clippy::manual_find_map,
22    clippy::map_flatten,
23    clippy::map_unwrap_or,
24    clippy::match_same_arms,
25    clippy::missing_const_for_fn,
26    clippy::mut_mut,
27    clippy::needless_borrow,
28    clippy::needless_continue,
29    clippy::needless_pass_by_value,
30    clippy::print_stdout,
31    clippy::redundant_closure_for_method_calls,
32    clippy::single_match_else,
33    clippy::trait_duplication_in_bounds,
34    clippy::type_repetition_in_bounds,
35    clippy::uninlined_format_args,
36    clippy::unused_self,
37    clippy::if_not_else,
38    clippy::manual_assert,
39    clippy::range_plus_one,
40    clippy::redundant_else,
41    clippy::semicolon_if_nothing_returned,
42    clippy::cloned_instead_of_copied,
43    clippy::flat_map_option,
44    clippy::unnecessary_wraps,
45    clippy::unnested_or_patterns,
46    clippy::use_self,
47    clippy::trivially_copy_pass_by_ref
48)]
49
50extern crate alloc;
51
52#[macro_use]
53mod macros;
54mod bigint;
55mod biguint;
56mod error;
57mod iter;
58#[cfg(feature = "num-bigint")]
59mod num_bigint_conversion;
60
61pub use bigint::{BigInt, Sign, ToBigInt};
62pub use biguint::{BigUint, ToBigUint};
63pub use error::{ParseBigIntError, TryFromBigIntError};
64pub use iter::{U32Digits, U64Digits};