1 // Copyright 2020-2021 Ian Jackson and contributors to Otter
2 // SPDX-License-Identifier: AGPL-3.0-or-later
3 // There is NO WARRANTY.
5 // See Import Structure Doctrine in src/prelude.rs
7 pub use std::borrow::Borrow;
8 pub use std::cmp::{max, Ordering};
9 pub use std::convert::{TryFrom, TryInto};
10 pub use std::f64::consts::TAU;
11 pub use std::fmt::{self, Debug, Display, Formatter, Write as _};
12 pub use std::hash::{Hash, Hasher};
13 pub use std::iter::{self, FusedIterator};
15 pub use std::num::{TryFromIntError, Wrapping};
16 pub use std::ops::{Deref, DerefMut, Index, IndexMut};
18 pub use std::str::FromStr;
20 pub use arrayvec::ArrayVec;
21 pub use derive_more::*;
23 pub use fehler::{throw, throws};
24 pub use if_chain::if_chain;
25 pub use itertools::{chain, iproduct, izip, zip_eq, EitherOrBoth, Itertools};
26 pub use serde::{Deserialize, Serialize};
27 pub use serde_with::DeserializeFromStr;
28 pub use serde_with::SerializeDisplay;
29 pub use thiserror::Error;
32 pub use crate::html::*;
34 pub use crate::{pos_zip_map, pos_zip_try_map};
35 pub use crate::geometry::{CoordinateOverflow, PosC, PosPromote};
36 pub use crate::{dbgc, hformat, hformat_as_display, hwrite};
37 pub use crate::misc::default;
38 pub use crate::misc::display_as_debug;
40 pub use crate::if_let;