[−][src]Module myopic::lens::lens
The lens module contains the main implementation of the lens concept as a pair of getter and setter closures. It appears to inline well and is by far the fastest in the micro-benchmarks.
Note that lens does require closure types, which are unnamable. I have not been able to implement this module without them, so users will have to use type inference, or partially specify types like
let lens: Lens<_, _, u32, u8> =
to specify a lense from a u32 to a u8, for example.
Structs
ComposedLens | |
Lens |