Skip to main content

pstd/
lib.rs

1#![deny(missing_docs)]
2
3//! Crate with parts of Rust std library ( different implementations, features not yet stabilised etc ), in particular [`collections::BTreeMap`], [`collections::BTreeSet`] and [`vec::Vec`].
4
5//!# Features
6//!
7//! This crate supports the following cargo features:
8//! - `serde` : enables serialisation of [`collections::BTreeMap`] and [`collections::BTreeSet`] via serde crate.
9//! - `unsafe-optim` : Enable unsafe optimisations in release mode.
10
11/// Memory allocation.
12pub mod alloc;
13
14/// Containers.
15pub mod collections {
16    pub mod btree_map;
17
18    pub use btree_map::BTreeMap;
19
20    pub mod btree_set;
21
22    pub use btree_set::BTreeSet;
23
24    mod merge_iter;
25}
26
27/// Vec similar to [`std::vec::Vec`], many methods not yet done.
28pub mod vec;
29
30#[cfg(test)]
31mod testing {
32    pub mod crash_test;
33}