Module set

Source
Expand description

All the methods and types associated to Sets.

Structs§

Set
Represent a slice which contains types that are sorted and deduplicated (akin to str).
SetBuf
An owned, set (akin to String).

Enums§

Error
Represent the possible errors when creating a Set.

Functions§

is_sort_dedup
Returns an error if the slice is not sorted nor deduplicated, returns () if it is.
slice_sets_into_slices
Safely transmute a slice of Sets into a slice of slice.
sort_dedup_vec
Sort and dedup the vec given in parameter.
vec_sets_into_slices
Safely transmute a Vec of Sets into a Vec of slice.
vec_slices_into_sets
Construct a Vec of Sets only if all slices are sorted and deduplicated.
vec_slices_into_sets_unchecked
Transmutes slices without checking them.

Type Aliases§

Errors
The list of all Errors that can occur while trying to convert a slice to a Set.