pub fn parse<S: Source, T: Varint>(r: &mut S) -> Result<T, BitError>Expand description
Reads one LEB128 value; the target width comes from the field’s declared type.
§Errors
Convert when the value overflows the
width or the continuation run exceeds the width’s maximum byte count;
UnexpectedEof when the input ends
mid-varint.