sega_controller/lib.rs
1#![no_std]
2
3#[cfg(feature = "mega-drive")]
4pub mod mega_drive;
5
6pub type ControllerResult<T, E> = Result<T, Error<E>>;
7
8#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
9pub enum Error<E> {
10 Other(E),
11 NotPresent,
12}
13
14impl<E> From<E> for Error<E> {
15 fn from(error: E) -> Self {
16 Error::Other(error)
17 }
18}