Skip to content

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

Description

@823984418

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions