Module prelude

Source
Expand description

std / no_std compat

Modules§

vec
A contiguous growable array type with heap-allocated contents, written Vec<T>.

Macros§

vec
Creates a Vec containing the arguments.

Structs§

Box
A pointer type that uniquely owns a heap allocation of type T.
Map
A hash map implemented with quadratic probing and SIMD lookup.
Mutex
A mutual exclusion primitive useful for protecting shared data
MutexGuard
An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
OrderedMap
An ordered map based on a B-Tree.
OrderedSet
An ordered set based on a B-Tree.
String
A UTF-8–encoded, growable string.
UnorderedSet
A hash set implemented as a HashMap where the value is ().
Vec
A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Traits§

SendSync
Convenience trait for Send + Sync
ToOwned
A generalization of Clone to borrowed data.
ToString
A trait for converting a value to a String.