Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow callback to access the ignored values #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Diggsey
Copy link

@Diggsey Diggsey commented Aug 2, 2021

This change allows the caller to specify a type S which will be used to deserialize ignored values. The deserialized value will then be passed to the callback.

This can be useful in several ways. First, you could use S=serde_json::Value to simply access the ignored values. Alternatively you could use S=toml::Spanned<IgnoredAny> if you just want to find out where the ignore value is in the input. Finally, you could combine the two with S=toml::Spanned<toml::Value>.

This addresses #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant