Function i8
fn i8<Input, Error>(input: &mut Input) -> Result<i8, Error>
where
Input: StreamIsPartial + Stream<Token = u8>,
Error: ParserError<Input>
Recognizes a signed 1 byte integer
Note: that endianness does not apply to 1 byte numbers.
Complete version: returns an error if there is not enough input data
[Partial version][crate::_topic::partial]: Will return Err(winnow::error::ErrMode::Incomplete(_)) if there is not enough data.
Example
# use ;
# use *;
# use Size;
use i8;
assert_eq!;
assert!;
# use ;
# use *;
# use Size;
# use Partial;
use i8;
assert_eq!;
assert_eq!;