Module optics::prelude

source ·
Expand description

Prelude, aimed for blanket import.

Lenses for tuples are only defined for each tuple with arity n <= 4. Normally, tuples with more fields are discouraged for practical use. That said, one can always declare his own ones with the macro declare_lens_from_field.

Structs§