Commit a1bc244
* [Rust] codegen now implements: "From<&'a mut WriteBuf<'a>> for &'a mut [u8]"
* [Rust] refactored codegen of primitive array encoding to accept slice instead of array
* [Rust] updated some tests
* [Rust] updated codegen to create additional function for primitive arrays that will accept an "impl Iterator". This allows an arbitrary number of items to be passed in, which will guarantee the correct number of items are encoded (defined 'nullValue' will be used where appropriate)
* [Rust] generate at_most_*_items_from_slice setter for fixed sized primitive array in message
* [Rust] add padded support for slice setter for primitive array field
* [Rust] simplify impl of generated slice aware methods
* merging in PR
* [Rust] updated generator to create "_from_iter" and "_zero_padded" functions for primitive array
* [Rust] updated generator to create "_from_iter" and "_zero_padded" functions for primitive array
* fixed formatting issues
* removed unused format argument
---------
Co-authored-by: Michael Ward <mward@drw.com>
Co-authored-by: Elvis Wang <mail@wangbo.im>
1 parent 34f2c32 commit a1bc244
File tree
10 files changed
+1369
-75
lines changed- rust
- tests
- sbe-tool/src
- main/java/uk/co/real_logic/sbe/generation/rust
- test
- java/uk/co/real_logic/sbe/generation/rust
- resources
10 files changed
+1369
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| 668 | + | |
668 | 669 | | |
669 | 670 | | |
670 | 671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments