Skip to content

Allow using BTreeSet, HashSet as Value #2804

@ctron

Description

@ctron

Motivation

Using PgFunc::any() requires a Vec. Since it requires an Into<SimpleExpr>, which is provided for Into<Value>.

However, having a BTreeSet or HashSet isn't supported.

Proposed Solutions

An easy way should be to implement From<BTreeSet<T>> (and HashSet) similar to the Vec<T> implementation.

More ideal would be to have this for IntoIterator<Item=T>. But I'm not sure this is feasible.

Additional Information

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