tosic_http/error/
foreign_impls.rs1use crate::error::response_error::ResponseError;
2use std::char::ParseCharError;
3use std::convert::Infallible;
4use std::num::{ParseFloatError, ParseIntError};
5use std::str::ParseBoolError;
6
7macro_rules! impl_parse_error (
8 {$ty:ty} => {
9 impl ResponseError for $ty {}
10 };
11);
12
13impl_parse_error! {Infallible}
14impl_parse_error! {ParseIntError}
15impl_parse_error! {ParseBoolError}
16impl_parse_error! {ParseCharError}
17impl_parse_error! {ParseFloatError}