You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the documentation I'm forced to use Attribute::parse_outer to parse attributes, but it always consumes the prefix of ParseStream in the all-or-nothing fashion. What's the idiomatic way to leave unrecognized attributes untouched and feed them to further parsing?
From a naïve thought I need an API to peek just one attribute, so that I can consume tokens only if the attribute was recognized.
The text was updated successfully, but these errors were encountered:
As per the documentation I'm forced to use
Attribute::parse_outer
to parse attributes, but it always consumes the prefix ofParseStream
in the all-or-nothing fashion. What's the idiomatic way to leave unrecognized attributes untouched and feed them to further parsing?From a naïve thought I need an API to peek just one attribute, so that I can consume tokens only if the attribute was recognized.
The text was updated successfully, but these errors were encountered: