Crate refraction [−] [src]
refraction is a lens library for Rust. Its design is based broadly on
that of the Haskell
package, but reworked and
reorganized to become more Rusty.
nightly cargo feature flag can be used to enable some features only
available on nightly Rust:
- Lenticuloids that deal with the
- More efficient implementation of some macros
To get started easily, import
These lenticuloids handle lossless conversions via the standard library
These lenticuloids deal with Rust's basic error-handling types:
A prelude module suitible for glob-importing.
These lenticuloids deal with the trivial and the impossible; that is, they
operate with values of types
Some utility functions used inside this crate, but possibly useful for others as well.
Compose all the provided lenticuloids in intuitive order.
Compose all the provided lenticuloids in categorical order.
Create a simple lens inline to address a specific (possibly nested) field of a type.
Composition of lenticuloids.
The identity lenticuloid.
The inversion of a lenticuloid.
The supertype of all isomorphism families.
The supertype of all lens families.
The supertype of all lenticuloids.
The supertype of all partial lens families.
The supertype of all prism families.
The identity lenticuloid (function form).