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
//#![cfg_attr(feature = "dynbox", feature(core_intrinsics))]
//! Crate with parts of Rust std library ( different implementations, features not yet stabilised etc ),
//! in particular [`Box`], [`Vec`], [`Rc`], [`String`] and [collections]::{ [`BTreeMap`](collections::BTreeMap), [`BTreeSet`](collections::BTreeSet), [`HashMap`](collections::HashMap), [`HashSet`](collections::HashMap) }.
//!
//! Box, Rc and String currently only have minimal methods/traits implemented.
//!
//! HashMap and HashSet are imported from the hashbrown crate.
//!
//! [`RcStr`] is a reference-counted string based on [`RcSlice`].
//!
//! The [`localalloc`] module has fast thread-local allocators.
//!
//!# Features
//!
//! This crate supports the following cargo features:
//! - `serde` : enables serialisation of [`BTreeMap`](collections::BTreeMap) and [`BTreeSet`](collections::BTreeSet) via serde crate.
//! - `unsafe-optim` : Enable unsafe optimisations in release mode.
//! - `dynbox` : enables Boxing of dyn values, requires nightly toolchain.
//! - `log-bump` : prints details of local allocation when thread terminates.
/// Memory allocation.
/// Thread-local allocators.
/// Containers: BTreeMap, BTreeSet, HashMap and HashSet.
/// [`Vec`] similar to [`std::vec::Vec`].
pub use ;
/// [`String`] similar to [`std::string::String`]
pub use ;
/// [`Box`] similar to [`std::boxed::Box`].
pub use ;
/// [`Rc`] similar to [`std::rc::Rc`].
pub use ;