Skip to content

Commit 31a9c63

Browse files
authored
Merge pull request #381 from formal-land/gy@structparamdeafult
Add definitions for structs' default parameters
2 parents b807d51 + 5b687c8 commit 31a9c63

File tree

2 files changed

+273
-231
lines changed

2 files changed

+273
-231
lines changed

CoqOfRust/ink/ink_storage.v

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Module lazy.
2424
Notation.double_colon '(Build_t x0) := x0;
2525
}.
2626
End Mapping.
27+
Module Default.
28+
Definition KeyType := ink_storage_traits.impls.AutoKey.
29+
End Default.
2730
End Mapping.
2831
Definition Mapping
2932
(K V KeyType : Set)
@@ -50,6 +53,9 @@ Module lazy.
5053
Notation.double_colon '(Build_t x0) := x0;
5154
}.
5255
End Lazy.
56+
Module Default.
57+
Definition KeyType := ink_storage_traits.impls.AutoKey.
58+
End Default.
5359
End Lazy.
5460
Definition Lazy
5561
(V KeyType : Set)
@@ -78,6 +84,9 @@ Module mapping.
7884
Notation.double_colon '(Build_t x0) := x0;
7985
}.
8086
End Mapping.
87+
Module Default.
88+
Definition KeyType := ink_storage_traits.impls.AutoKey.
89+
End Default.
8190
End Mapping.
8291
Definition Mapping
8392
(K V KeyType : Set)
@@ -106,6 +115,9 @@ Module Mapping.
106115
Notation.double_colon '(Build_t x0) := x0;
107116
}.
108117
End Mapping.
118+
Module Default.
119+
Definition KeyType := ink_storage_traits.impls.AutoKey.
120+
End Default.
109121
End Mapping.
110122
Definition Mapping
111123
(K V KeyType : Set)
@@ -131,6 +143,9 @@ Module Lazy.
131143
Notation.double_colon '(Build_t x0) := x0;
132144
}.
133145
End Lazy.
146+
Module Default.
147+
Definition KeyType := ink_storage_traits.impls.AutoKey.
148+
End Default.
134149
End Lazy.
135150
Definition Lazy
136151
(V KeyType : Set)

0 commit comments

Comments
 (0)