pub(crate) fn from_crossterm(error: CrosstermError) -> Self {
        match error {
            CrosstermError::IoError(error) => ErrorKind::IO(error),
            CrosstermError::FmtError(error) => ErrorKind::Fmt(error),
            CrosstermError::Utf8Error(error) => ErrorKind::Utf8(error),
            CrosstermError::ParseIntError(error) => ErrorKind::ParseInt(error),
            error => ErrorKind::Custom(Box::new(error)),
        }
    }
/// Converts a Crossterm error to Andiskaz error kind.
Converts a Crossterm error to Andiskaz error kind.
Converts a Crossterm error to Andiskaz error kind .
pub(crate) fn from_crossterm(error: CrosstermError) -> Self {
        match error {
            CrosstermError::IoError(error) => ErrorKind::IO(error),
            CrosstermError::FmtError(error) => ErrorKind::Fmt(error),
            CrosstermError::Utf8Error(error) => ErrorKind::Utf8(error),
            CrosstermError::ParseIntError(error) => ErrorKind::ParseInt(error),
            error => ErrorKind::Custom(Box::new(error)),
        }
    }
pub ( crate ) fn from_crossterm ( error : CrosstermError ) -> Self { match error { CrosstermError :: IoError ( error ) => ErrorKind :: IO ( error ) , CrosstermError :: FmtError ( error ) => ErrorKind :: Fmt ( error ) , CrosstermError :: Utf8Error ( error ) => ErrorKind :: Utf8 ( error ) , CrosstermError :: ParseIntError ( error ) => ErrorKind :: ParseInt ( error ) , error => ErrorKind :: Custom ( Box :: new ( error ) ) , } }
Converts a Crossterm error to Andiskaz error kind.
Converts a Crossterm error to Andiskaz error kind .
error
CrosstermError
error
CrosstermError