Crate frunk_utils

Source
Expand description

Utilities for working with frunk.

Re-exports§

pub use self::cons_list::ConsList;
pub use self::cons_list::ConsListT;

Modules§

cons_list

Structs§

Identity
Poly
The Func trait from frunk doesn’t take self as a parameter to call so there isn’t an easy way to get context from the surrounding scope. Here we define our own Poly wrapper and Func trait that does take self as a parameter so the caller can include whatever context they need.

Traits§

ForEach
Func
MapToList
WithGeneric
Convenience functions for the caller to map between similarly-shaped types implementing Generic without having to explicitly call Generic::from and Generic::into
WithLabelledGeneric
Convenience functions for the caller to map between similarly-shaped types implementing LabelledGeneric without having to explicitly call LabelledGeneric::from and LabelledGeneric::into