pub trait ValidateSignedInteger {
    type Error;
    type Output;

    fn parse_i128(i: i128) -> Result<Self::Output, Self::Error>;
    fn validate_i128(i: i128) -> Result<(), Self::Error>;

    fn parse_isize(i: isize) -> Result<Self::Output, Self::Error> { ... }
    fn parse_i64(i: i64) -> Result<Self::Output, Self::Error> { ... }
    fn parse_i32(i: i32) -> Result<Self::Output, Self::Error> { ... }
    fn parse_i16(i: i16) -> Result<Self::Output, Self::Error> { ... }
    fn parse_i8(i: i8) -> Result<Self::Output, Self::Error> { ... }
    fn validate_isize(i: isize) -> Result<(), Self::Error> { ... }
    fn validate_i64(i: i64) -> Result<(), Self::Error> { ... }
    fn validate_i32(i: i32) -> Result<(), Self::Error> { ... }
    fn validate_i16(i: i16) -> Result<(), Self::Error> { ... }
    fn validate_i8(i: i8) -> Result<(), Self::Error> { ... }
}
Expand description

Validate and deserialize signed integers.

Required Associated Types

Required Methods

Provided Methods

Implementors