Lines Matching defs:i8
227 pub fn be_i8<I, E: ParseError<I>>(input: I) -> IResult<I, i8, E>
231 be_u8.map(|x| x as i8).parse(input)
569 pub fn le_i8<I, E: ParseError<I>>(input: I) -> IResult<I, i8, E>
573 be_u8.map(|x| x as i8).parse(input)
934 /// use nom::number::complete::i8;
937 /// i8(s)
944 pub fn i8<I, E: ParseError<I>>(i: I) -> IResult<I, i8, E>
948 u8.map(|x| x as i8).parse(i)
1663 assert_parse!(i8(&[0x00][..]), Ok((&b""[..], 0)));
1664 assert_parse!(i8(&[0x7f][..]), Ok((&b""[..], 127)));
1665 assert_parse!(i8(&[0xff][..]), Ok((&b""[..], -1)));
1666 assert_parse!(i8(&[0x80][..]), Ok((&b""[..], -128)));