ranged_type 0.1.0

An crate providing ranged numeric types.
1
2
3
4
5
6
7
8
9
10
11
use crate::consts::msg;
use thiserror::Error;

pub type Result<T, E = Error> = std::result::Result<T, E>;

#[derive(Clone, Debug, Error, PartialEq)]

pub enum Error {
    #[error("{}: {}", msg::ERR_INVALID_INT_REPR, 0)]
    InvalidIntRepr(std::num::ParseIntError),
}