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 2,566 times
6

Shepmaster
- 388,571
- 95
- 1,107
- 1,366

Ziva
- 3,181
- 15
- 48
- 80
-
1In general no but you can match it, can you give any example ? – Stargateur Jan 10 '20 at 16:15