Crate frunk_core [] [src]

Frunk Core

This library forms the core of Frunk. It should ideally be minimalistic, containing only the fundamental building blocks of generic programming.


let h = hlist![1, false, 42f32];
let folded = h.foldr(hlist![|i, acc| i + acc,
    |_, acc| if acc > 42f32 { 9000 } else { 0 },
    |f, acc| f + acc],
    1f32);
assert_eq!(folded, 9001)Run

Links: 1. Source on Github 2. Crates.io page

Modules

generic

This module holds the machinery behind Generic.

hlist

Module that holds HList data structures and implementations

labelled

This module holds the machinery behind LabelledGeneric.

Macros

Hlist

Returns a type signature for an HList of the provided types

hlist

Returns an HList based on the values passed in.

hlist_pat

Macro for pattern-matching on HLists.