Hi, I have a short rust related question. I need to access the discriminant of an enum (so I can send the data in an array via the i2c interface). How would I go about this? [`std::mem::discriminant`](https://doc.rust-lang.org/std/mem/fn.discriminant.html) is no option as it is in std.

My enum and the code: 
```rust
pub enum Channel {
    I2C0 = 0b000,
    I2C1 = 0b001,
    I2C2 = 0b010,
    I2C3 = 0b011,
    I2C4 = 0b100,
    I2C5 = 0b101,
    I2C6 = 0b110,
    I2C7 = 0b111,
}

// ...

pub fn set_channel(&mut self, channel: Channel) -> Result<(), E> {
        let val: u8 = channel.into();
        let buffer = [val];
        self.com.write(self.address, &buffer)
    }

```