pub fn check_wire_type( expected: WireType, actual: WireType, ) -> Result<(), DecodeError>
Checks that the expected wire type matches the actual wire type, or returns an error result.