userspace/macros/tuples/unit.rs
1pub type Unit = ();
2
3// impl crate::traits::Primitive for Unit {
4// const IS_PRIMITIVE: bool = true;
5// }
6
7// impl crate::traits::Bytes for Unit {
8// const BYTES_SIZE: usize = 0;
9
10// fn to_bytes(&self, _endianness: bool) -> [u8; Self::BYTES_SIZE] {
11// [0u8; 0]
12// }
13
14// fn from_bytes(_bytes: [u8; Self::BYTES_SIZE], _endianness: bool) -> Self {
15// ()
16// }
17// }