Commit f129d7a
Merge #354
354: add variant to reader r=therealprof a=burrbull
r? @therealprof
Restore access to `enum`'s by `variant` method that return `enum FIELD` when possible or `Variant`.
Also replace `_to_bits` method in writer with trait.
So now enums for reader and writer are identical (when they don't use different values for read and write) and can be replaced by one.
See #353 .
Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>3 files changed
+172
-157
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| |||
0 commit comments