Module compactable

Module compactable 

Source
Expand description

Compactable type class.

This module defines the Compactable trait, which represents data structures that can be compacted (filtering out None values) and separated (splitting Result values).

Traits§

Compactable
A type class for data structures that can be compacted and separated.

Functions§

compact
Compacts a data structure of Options, discarding None values and keeping Some values.
separate
Separates a data structure of Results into two data structures: one containing the Ok values and one containing the Err values.