Module sdset::set

source ·
Expand description

All the methods and types associated to Sets.

Structs

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

Enums

Represent the possible errors when creating a Set.

Functions

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

Type Definitions

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