ferrischart 0.1.0

Build informative graphs in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Holds the crate's `Result` type and error enum

use image::ImageError;

#[derive(Debug)]
pub enum ChartErrors {
    ImageError
}

pub type ChartResult<T> = Result<T, ChartErrors>;

impl From<ImageError> for ChartErrors {
    fn from(_: ImageError) -> Self {
        ChartErrors::ImageError
    }
}