bvr-core 0.0.4

The core components used for the bvr pager.
Documentation
//! Error types and utilities.

#[derive(thiserror::Error, Debug)]
/// Represents an error that can occur in the application.
pub enum Error {
    /// An I/O error occurred.
    #[error("i/o error {0}")]
    Io(#[from] std::io::Error),

    /// An internal error occurred.
    #[error("internal error")]
    Internal,

    #[error("operation not supported when input is in-progress")]
    InProgress,

    #[error("operation not implemented")]
    Unimplemented,
}

/// A specialized [Result] type for this crate's operations.
pub type Result<T, E = Error> = std::result::Result<T, E>;