Skip to content

Sequence and map types needed #607

@diwic

Description

@diwic

I'm looking into serde support for my D-Bus bindings, but quickly ran into problems with trying to Serialize an empty array.

D-Bus allows typing of arrays, i e, all elements must be the same type. I could take that type from the first element, if it weren't for the fact that arrays can be empty. So, if I receive a serialize_seq_fixed_size with a size of 0 (or a serialize_seq directly followed by a serialize_seq_end), I have no idea if I need to append an empty D-Bus array of i32s, &strs or something else.

Edit: The same applies to maps, which are also strongly typed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions