Module filterable

Module filterable 

Source
Expand description

Filterable type class.

This module defines the Filterable trait, which represents data structures that can be filtered and partitioned.

Traits§

Filterable
A type class for data structures that can be filtered and partitioned.

Functions§

filter
Filters a data structure based on a predicate.
filter_map
Maps a function over a data structure and filters out None results.
partition
Partitions a data structure based on a predicate.
partition_map
Partitions a data structure based on a function that returns a Result.