af_core/
prelude.rs

1// Copyright © 2020 Alexandra Frydl
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7//! A “prelude” module containing common imports.
8
9#[doc(hidden)]
10pub use crate as af_core;
11
12#[doc(no_inline)]
13pub use {
14  crate::derive::*,
15  crate::error::{Error, Panic},
16  crate::fail::{self, fail, Result},
17  crate::fmt::{self, Debug, Display, Write as _},
18  crate::future::{self, Future, TryFuture, TryFutureExt as _},
19  crate::iter::{self, Itertools as _},
20  crate::json,
21  crate::log::{debug, error, info, trace, warn},
22  crate::math::{FloatExt as _, Number},
23  crate::random::{self, random, Random},
24  crate::stream::{self, Stream, StreamExt},
25  crate::time::{self, Date, Duration, Time},
26  crate::util::{attempt, attempt_async},
27  crate::util::{cfg_if, default, pin, pin_project},
28  crate::util::{Lazy, Uuid},
29  std::any::Any,
30  std::borrow::*,
31  std::cell::{self, Cell, RefCell},
32  std::cmp::{self, Eq, Ord, PartialEq, PartialOrd},
33  std::convert::{Infallible, TryFrom, TryInto},
34  std::hash::{self, Hash, Hasher},
35  std::io::{BufRead as _, Read as _, Seek as _, Write as _},
36  std::marker::PhantomData,
37  std::mem::{self, ManuallyDrop},
38  std::ops::*,
39  std::pin::Pin,
40  std::ptr,
41  std::rc::{Rc, Weak as RcWeak},
42  std::str::{self, FromStr},
43  std::sync::{Arc, Weak as ArcWeak},
44  std::{char, panic, slice},
45  std::{f32, f64},
46  std::{i128, i16, i32, i64, i8, isize},
47  std::{u128, u16, u32, u64, u8, usize},
48};