Module std_enums

Source
Expand description

Contains implementation of the CollectDispatch trait for every enum defined in the standard library.

Every std enum should additionaly have a custom trait entitled CollectE (E being the name of the enum), which can be used as an iterator adapter.

Traitsยง

CollectResult
Allows to collect values from an iterator by dispatching Ok variants and Err variants in two different containers.