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

Public API Request: make erased_serde::error::unerase_de public #112

Open
823984418 opened this issue Jan 29, 2025 · 0 comments
Open

Public API Request: make erased_serde::error::unerase_de public #112

823984418 opened this issue Jan 29, 2025 · 0 comments

Comments

@823984418
Copy link

I am trying to use a map to search for its deserialization function by type name.

table: HashMap<&'static str, for<'de> fn(
    &mut dyn erased_serde::Deserializer<'de>,
) -> Result<Box<dyn View>, erased_serde::Error>>

As you can see, the only error types he can return are erased_serde::Error, Therefore, I may need the unerase_de function to seamlessly integrate it with other deserializer.
erased_serde::de::DeserializeSeed
Is there a better practice? Or consider making the erased_serde::de::DeserializeSeed public as a replacement for the function pointer I am using here?

Thank you!

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

No branches or pull requests

1 participant