Module lens_rs::optics[][src]

definitions of optics (including derived optic)

Structs

Err
None
Ok
Some
_0

behaves as x.0, implemented Lens

_1

behaves as x.1, implemented Lens

_2

behaves as x.2, implemented Lens

_3
_4
_5
_6
_7
_8
_9
_10
_11
_12
_13
_14
_15
_16
__

the basic optic, behave as the identity functor

_both

to traverse all fields of tuples(0~6), implemented Traversal

_box

to create Box, Rc or Arc pointers, implemented Review

_ix

behave as xs[index]

_mapped

to traverse items of collections, implemented Traversal

_mut

to visit the data in pointers, implemented LensMut

_ref

to visit the data in pointers, implemented LensRef

Functions

all_optics

return all generated optics