How to write a macro that splits a byte into a tuple of u8 without creating a trait and only creating 1 tuple instead of 8?

前端 未结 0 1696
执念已碎
执念已碎 2020-12-07 22:28

I would like to have macro splitting one byte into tuple with 2-8 u8 parts using bitreader crate.

I managed to achieve that by following code:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题