Crate frunk_utils

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§

arithmetic_macros
cons_list

Macros§

cons_list
Recursively expands to nested ConsList::cons(…) calls.
impl_add
impl_add_assign
impl_add_assign_offset
impl_add_offset
impl_div
impl_div_assign
impl_div_assign_scalar
impl_div_scalar
impl_mul
impl_mul_assign
impl_mul_assign_scalar
impl_mul_scalar
impl_neg
impl_rem
impl_rem_assign
impl_rem_assign_scalar
impl_rem_scalar
impl_sub
impl_sub_assign
impl_sub_assign_offset
impl_sub_offset

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