Commit 347c728
Nicklas Warming Jacobsen
Add trait
* Add trait `TryFromTableAttribute` instead of using `TryFrom<TableAttribute> for T`
* Replace all the different macros in table_entry.rs with 1 single macro
* Blanket `impl<T: Into<TableAttribute>> From<Option<T>> for TableAttribute`
* Blanket `impl<T: Into<TableAttribute>> From<Vec<T>> for TableAttribute`
* Blanket `impl<T: TryFromTableAttribute> TryFromTableAttribute for Option<T>`
* Blanket `impl<T: TryFromTableAttribute> TryFromTableAttribute for Vec<T>`
* Fix the derive macros to use the new traitsTryFromTableAttribute
1 parent c3344cf commit 347c728
File tree
5 files changed
+351
-119
lines changed- cryptonamo-derive/src
- src
- encrypted_table
- traits
5 files changed
+351
-119
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments