Module prelude

Source
Expand description

Prelude of common useful imports.

This should include only things which are in the normal std prelude.

Structs§

Box
A pointer type that uniquely owns a heap allocation of type T.
Reverse
A helper struct for reverse ordering.
Vec
A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Traits§

Clone
A common trait for the ability to explicitly duplicate an object.
Eq
Trait for comparisons corresponding to equivalence relations.
IntoIterator
Conversion into an Iterator.
PartialEq
Trait for comparisons using the equality operator.
ToOwned
A generalization of Clone to borrowed data.

Derive Macros§

Clone
Derive macro generating an impl of the trait Clone.
Eq
Derive macro generating an impl of the trait Eq.
PartialEq
Derive macro generating an impl of the trait PartialEq. The behavior of this macro is described in detail here.