pub fn skip_field(tag: Tag, buf: &mut impl Buf) -> Result<(), DecodeError>Expand description
Skip one field value from buf according to the wire type in tag.
Used by generated Message::merge
implementations to advance past unknown or unrecognised fields during
decoding. After this call buf is positioned immediately after the
skipped field, ready for the next tag.
ยงErrors
Returns an error if the buffer is too short, if a length-delimited payload
length overflows usize, or if the wire type is a group.