[][src]Crate col_macros

This crate is a collection of general purporse collection macros.

Modules

types

These are the standard collection types aliased with the names that their respective macros depends, import them if you do not want define to them.

Macros

btree_map

Construct or update a map of type BTMap<K, V> which can be and is an alias to BTreeMap<K, V> in the types module.

btree_set

Construct or update a set of type BTSet<K> which can be and is an alias to BTreeSet in the types module.

hash_map

Construct or update a map of type Map<K, V> which can be and is an alias to HashMap<K, V> in the types module.

hash_set

Construct or update a set of type Set<K> which can be and is an alias to HashSet in the types module.

vec_deque

Construct a double-ended queue of type Deque<T> which can be and is an alias to VecDeque in the types module.

vector

Construct or update a vector of type Vector<T> which can be and is an alias to Vec in the types module.

Structs

DontDropOpt

A wrapper for an implementation of drop that [mem::forget] the previous value and replace it with None.

DropBy

A wrapper that calls the given closure at Drop. Useful when you have a conditional assign of one that,once assigned,you want to warranty a call to it with the given T,and then drop it.