mousefood 0.5.0

embedded-graphics backend for Ratatui
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Mousefood `Error` enum.

/// A `Result` type alias with [`Error`] as the default error type.
pub type Result<T, E = Error> = core::result::Result<T, E>;

/// Represents backend error.
#[derive(thiserror::Error, Debug)]
pub enum Error {
    /// Drawing to the display failed.
    #[error("drawing to DrawTarget failed")]
    DrawError,

    /// Selected [`ClearType`](ratatui_core::backend::ClearType) is not supported by Mousefood.
    #[error("ClearType::{0} is not supported by Mousefood")]
    ClearTypeUnsupported(alloc::string::String),
}