pub fn digits_i16<T, E>(base: u32) -> impl FnMut(T) -> IResult<T, i16, E>where
    T: InputTakeAtPosition<Item = LocatedSegment> + InputTake + InputLength + InputIter<Item = LocatedSegment> + AsRef<str> + Clone + Offset + Slice<RangeFrom<usize>> + Slice<RangeTo<usize>>,
    E: ParseError<T>,
Expand description

Parses a signed 16-bit number. Consumes all available digits, but might return an error if too large.