Is there a single bit type if not how to reprent gates logic that work only with bits as input and outpu

Viewed 255

Is there a single bit type in Rust? Something equivalent to C: unsigned x:1; The "1" represent the size, in this case one bit.

Edit

What should I do then if I want to do/represent the gates logic:
"And" gate two input(bit input) and one output bit
Same for the "Or" gate and so on...
Should I just ignore the size of the memory and work with u8?

Thanks

0 Answers
Related