fp-library 0.17.0

A functional programming library for Rust featuring your favourite higher-kinded types and type classes.
Documentation
//! Defines traits for common algebraic structures and functional abstractions,
//! such as [`Functor`], [`Applicative`] and [`Monad`].
//!
//! Traits representing higher-kinded types (e.g., `Functor`) are implemented by
//! [`Brand` types][crate::brands] to simulate higher-kinded polymorphism, as Rust does not
//! natively support it.

pub mod alt;
pub mod alternative;
pub mod applicative;
pub mod apply_first;
pub mod apply_second;
pub mod arrow;
pub mod bifoldable;
pub mod bifunctor;
pub mod bitraversable;
pub mod category;
pub mod clone_fn;
pub mod commutative_ring;
pub mod comonad;
pub mod compactable;
pub mod contravariant;
pub mod deferrable;
pub mod division_ring;
pub mod euclidean_ring;
pub mod extend;
pub mod extract;
pub mod field;
pub mod filterable;
pub mod filterable_with_index;
pub mod foldable;
pub mod foldable_with_index;
pub mod functor;
pub mod functor_with_index;
pub mod heyting_algebra;
pub mod lazy_config;
pub mod lift;
pub mod monad;
pub mod monad_plus;
pub mod monad_rec;
pub mod monoid;
pub mod natural_transformation;
pub mod optics;
pub mod par_compactable;
pub mod par_filterable;
pub mod par_filterable_with_index;
pub mod par_foldable;
pub mod par_foldable_with_index;
pub mod par_functor;
pub mod par_functor_with_index;
pub mod par_ref_filterable;
pub mod par_ref_filterable_with_index;
pub mod par_ref_foldable;
pub mod par_ref_foldable_with_index;
pub mod par_ref_functor;
pub mod par_ref_functor_with_index;
pub mod pipe;
pub mod plus;
pub mod pointed;
pub mod pointer;
pub mod profunctor;
pub mod ref_alt;
pub mod ref_applicative;
pub mod ref_apply_first;
pub mod ref_apply_second;
pub mod ref_bifoldable;
pub mod ref_bifunctor;
pub mod ref_bitraversable;
pub mod ref_compactable;
pub mod ref_counted_pointer;
pub mod ref_filterable;
pub mod ref_filterable_with_index;
pub mod ref_foldable;
pub mod ref_foldable_with_index;
pub mod ref_functor;
pub mod ref_functor_with_index;
pub mod ref_lift;
pub mod ref_monad;
pub mod ref_pointed;
pub mod ref_semiapplicative;
pub mod ref_semimonad;
pub mod ref_traversable;
pub mod ref_traversable_with_index;
pub mod ref_witherable;
pub mod ring;
pub mod semiapplicative;
pub mod semigroup;
pub mod semigroupoid;
pub mod semimonad;
pub mod semiring;
pub mod send_clone_fn;
pub mod send_deferrable;
pub mod send_ref_applicative;
pub mod send_ref_apply_first;
pub mod send_ref_apply_second;
pub mod send_ref_counted_pointer;
pub mod send_ref_foldable;
pub mod send_ref_foldable_with_index;
pub mod send_ref_functor;
pub mod send_ref_functor_with_index;
pub mod send_ref_lift;
pub mod send_ref_monad;
pub mod send_ref_pointed;
pub mod send_ref_semiapplicative;
pub mod send_ref_semimonad;
pub mod to_dyn_clone_fn;
pub mod to_dyn_fn;
pub mod to_dyn_send_fn;
pub mod traversable;
pub mod traversable_with_index;
pub mod with_index;
pub mod witherable;

// Automatically re-export all traits defined in submodules.
fp_macros::generate_trait_re_exports!("src/classes", {});