keysim 0.1.0

a crossplatform library to simulate user inputs
Documentation
use std::fmt;
use std::fmt::{Debug, Display};

/// An error that might occur when interacting when simulating user inputs.
pub struct Error(pub(crate) crate::platform::Error);

impl Debug for Error {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        Debug::fmt(&self.0, f)
    }
}

impl Display for Error {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        Display::fmt(&self.0, f)
    }
}

impl std::error::Error for Error {
    fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
        Some(&self.0)
    }
}