[][src]Trait validators::traits::ValidateSignedInteger

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> { ... } }

Validate and deserialize signed integers.

Associated Types

type Error

type Output

Loading content...

Required methods

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

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

Loading content...

Provided methods

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>

Loading content...

Implementors

Loading content...