termimad 0.34.1

Markdown Renderer for the Terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::fit::InsufficientWidthError;

/// Termimad error type
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("IO error: {0}")]
    IO(#[from] std::io::Error),

    #[error("InsufficientWidth: {0}")]
    InsufficientWidth(#[from] InsufficientWidthError),
}

pub(crate) type Result<T> = std::result::Result<T, Error>;