If I have a variable of type &[u8], is there a way to turn it instead into type [u8; SIZE] where SIZE is some fixed constant?
Asked
Active
Viewed 1,324 times
2
Shepmaster
- 326,504
- 69
- 892
- 1,159
Ziva
- 2,785
- 13
- 43
- 78
-
In general no but you can match it, can you give any example ? – Stargateur Jan 10 '20 at 16:15