[][src]Module myopic::lens::lens_fn

The lens_fn module contains an implementation of lens as getter/setter pairs using function pointers (fn in Rust). This was intended as a kind of control in the benchmarking to see if Box incurred penality vs regular functions. It appears that there is no reason to use lens_fn- its no faster then boxed trait objects and requires separate functions for each getter/setter instead of allowing boxed closures like lens_box.

Structs

ComposedLens
Lens