[−][src]Function combine::parser::byte::num::le_i32
pub fn le_i32<'a, Input>() -> I32<LE, Input> where
Input: Stream<Token = u8>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
Reads a i32 out of the byte stream with the specified endianess
use combine::byteorder::LE; use combine::Parser; use combine::parser::byte::num::i32; assert_eq!(i32::<LE, _>().parse(&b"\x01\0\0\0"[..]), Ok((1, &b""[..]))); assert!(i32::<LE, _>().parse(&b"\x01\0\0"[..]).is_err());