3 releases

Uses old Rust 2015

0.1.2 Dec 18, 2016
0.1.1 Dec 17, 2016
0.1.0 Dec 17, 2016

#4 in #isomorphism

36 downloads per month

Apache-2.0

47KB
1.5K SLoC

refraction

Crates.io Crates.io Crates.io Build Status

A pure Rust lens library. This is a work in progress, and is not yet ready for production use.

Examples

Coming soon!


lib.rs:

refraction is a lens library for Rust. Its design is based broadly on that of the Haskell lens package, but reworked and reorganized to become more Rusty.

The nightly cargo feature flag can be used to enable some features only available on nightly Rust:

  • Lenticuloids that deal with the ! type
  • const fn support
  • More efficient implementation of some macros

To get started easily, import refraction::prelude::*.

Dependencies

~10KB