Skip to content

Add ContentDeserializer?Β #1

@Ten0

Description

@Ten0

Aah I thought this crate was exactly what I wanted but unfortunately it isn't due to a very minor detail... I was looking for ContentDeserializer, not ContentRefDeserializer: I only need to attempt deserialization once, but it needs to be buffered (because I need to inspect the data and possibly create a value if deserializer says sequence is complete, before passing it to a DeserializeSeed, and there's no other path than the Content buffer because next_element_seed takes seed owned so when that gives back None I've lost my seed ^^').

And so this seems sad, because it forces a reallocation:

Content::String(ref v) => visitor.visit_str(v),

Do you think it would make sense to have ContentDeserializer in this crate as well? (But then crate name is sad. πŸ˜…)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions