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§
- Lens for field
0
in tuples. - Lens for field
1
in tuples. - Lens for field
2
in tuples. - Lens for field
3
in tuples. - Prism for
Result::Err
. - Prism for
Result::Ok
. - Prism for
Option::Some
.