[][src]Crate map1

This crate houses several wrappers and convenience macros over std collections that guarantee that they will never be empty. This is particularly useful for modeling APIs and data that need a non-empty invariant and reducing potential error cases by using types rather than conventions.

The crate provides an optional serde feature, which provides implementations of serde::Serialize/serde::Deserialize.

Re-exports

pub use btree_map::BTreeMap1;

Modules

btree_map

A wrapper around std::collections::BTreeMap that guarantees that it will never be empty.

Macros

btree_map_1

A convenience macro for constructing BTreeMap1.