1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use ops;
pub use see_derive;
///
/// This trait let's us visit a specific field inside a struct. similar to lens in Haskell
///
/// e.g.
/// Consider a scenerio where, you are passing a generic to a function and incidentally you also want
/// to get a value inside it. Let's assume that there are multiple structs with the same field
/// `foo` you might wish to for example view it. But, it would be impossible to do so,
///
///
/// A trait to provide an additional `ops::Index` functionality over `See`
///
/// This trait, is an extension to that See trait, which also allows easier indexing with the help
/// of `ops::Index`. This allows you to use simple formats like `value[see_t::X]` instead of using
/// functions to get or set these values. This not only helps with ease of use, but also allows you
/// to implement multiple Look clause on the generic, unlocking more lookups inside the generic.
///
/// This implementation is automatically derived when all the conditions are met.