1 2 3 4 5 6 7 8 9 10 11 12
/// All possible errors in this crate #[derive(Debug)] pub enum Error<E> { /// I2C bus error I2c(E), RegisterSizeMismatch(u8), } impl<E> From<E> for Error<E> { fn from(other: E) -> Self { Error::I2c(other) } }