cotati 0.1.2

cotati is a general-purpose vector drawing interface that does not restrict binding to a back-end renderer.
Documentation
use std::num::{ParseFloatError, ParseIntError};

/// Error variant used by `cotati`.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Invalid viewport string: {0}")]
    InvalidViewPortStr(String),

    #[error("Unknown color: {0}")]
    UnrecognizedColor(String),

    #[error(transparent)]
    ParseFloatError(#[from] ParseFloatError),

    #[error(transparent)]
    ParseIntError(#[from] ParseIntError),

    #[error(transparent)]
    IoError(#[from] std::io::Error),

    #[error("Invalid length string: {0}")]
    LengthStr(String),

    #[error("Invalid length unit: {0}")]
    LengthUnit(String),

    #[error("Invalid transform string: {0}")]
    TransformStr(String),

    #[error("Invalid angle string: {0}")]
    Angle(String),
}

/// Result type used by this `cotati`.
pub type Result<T> = std::result::Result<T, Error>;