[][src]Crate cl_traits

Collection Traits (cl-traits)

Macros

create_and_impl_marker_trait

Creates a marker trait $trait_name with or without bounds. A default implementation is also provided for anything, regardless of the presence of the given bounds.

create_marker_trait

Creates a marker trait $trait_name with or without bounds.

Traits

Capacity

Has some sort of storage that holds a maximum number of elements.

Clear

Has some sort of storage that can be cleared.

Get

Has some way to extract a reference from some sort of storage.

GetMut

Has some way to extract a mutable reference from some sort of storage.

Length

Has some sort of storage that holds a certain number of elements.

Push

Has some way to push an element into some sort of storage.

Slice

Has some way to convert some sort of storage into slices.

SliceMut

Has some way to convert some sort of storage into mutable slices.

Swap

Has some way to swap elements of some sort of storage.

Truncate

Has some way to truncate some sort of storage.