Skip to content

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