Crate cl_traits[][src]

Expand description

Collection Traits (cl-traits)

Many data structures have unique features that make it difficult or even impossible to create a single trait that fits all. This crate tries to circumvent such behaviour by providing a single method for each trait to achieve maximum flexibility and freedom.

Modules

Instances for documentation tests

Traits

See capacity for more information.

See capacity_upper_bound for more information.

See clear for more information.

See insert for more information.

See length for more information.

See push for more information.

See remove for more information.

See retain for more information.

Storage is anything that can hold a collection of items

See Swap for more information.

See Truncate for more information.

See with_capacity for more information.

Functions

Creates an array [T; N] where each array element T is returned by the cb call.

Creates an array [T; N] where each array element is T::default()

Creates a fallible array [T; N] where each array element T is returned by the cb call.