1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#![deny(clippy::correctness)]
#![warn(
clippy::style,
clippy::complexity,
clippy::perf,
clippy::pedantic,
clippy::clone_on_ref_ptr,
clippy::option_unwrap_used,
clippy::result_unwrap_used,
clippy::wrong_pub_self_convention,
clippy::unimplemented,
clippy::print_stdout,
clippy::dbg_macro,
clippy::float_cmp_const
)]
#![allow(
clippy::cast_possible_truncation,
clippy::cast_possible_wrap,
clippy::cast_precision_loss,
clippy::default_trait_access,
clippy::empty_enum,
clippy::module_name_repetitions,
clippy::use_self,
clippy::must_use_candidate
)]
#![cfg_attr(
test,
allow(
clippy::wildcard_imports,
clippy::option_unwrap_used,
clippy::result_unwrap_used,
clippy::redundant_clone,
)
)]
extern crate num_traits;
#[cfg(feature = "serde-1")]
#[macro_use]
extern crate serde;
#[cfg(feature = "rand-07")]
extern crate rand;
#[cfg(feature = "collections")]
#[macro_use]
extern crate thiserror;
#[cfg(test)]
extern crate itertools;
#[cfg(feature = "collections")]
pub mod collections;
pub mod coords;
pub mod directions;
pub mod line;
pub mod quad_prism;
#[cfg(feature = "collections")]
#[doc(inline)]
pub use collections::{DirectionMap, HexMap, KdTree};
#[doc(inline)]
pub use coords::{Point, PointAxial, Vector, VectorAxial};
#[doc(inline)]
pub use directions::Direction;
#[doc(inline)]
pub use quad_prism::QuadPrism;