Crate scrapmetal [−] [src]
Scrap Your Boilerplate!
This crate provides the traversing, transforming, and querying helpers and combinators from the Haskell paper "Scrap Your Boilerplate: A Practical Design Pattern for Generic Programming" by Lämmel and Peyton Jones to Rust.
Structs
Everything |
Recursively perform a query in a top-down, left-to-right manner across a
data structure. The |
Everywhere |
Recursively perform a transformation in a bottom up manner across a complete data structure. |
EverywhereBut |
Recursively perform a transformation in a bottom up manner across a complete data structure. |
MutateEverything |
Recursively perform a query in a top-down, left-to-right manner across a
data structure. The |
Mutation |
A mutation creates some value |
Query |
A query non-destructively creates some value |
Transformation |
A transformation takes some value |
Traits
GenericMutate |
A similar work around as |
GenericQuery |
A similar work around as |
GenericTransform |
Work around Rust's lack of higher-rank type polymorphism with a trait that
has a generic |
Term |
A |