Skip to content

[Variant] Improve ergonomic for creating VariantArray #8628

@alamb

Description

@alamb

If we do this:

impl<'m, 'v, V: Into<Variant<'m, 'v>> FromIterator<Option<V>> for VariantArray {

then we can create a variant array from anything that converts cleanly to variant (e.g. i64 values or &str)?

Originally posted by @scovich in #8625 (comment)

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