Skip to content

Trait impls for CxxString: Hash, Ord, PartialOrd, Eq #737

Closed
@dtolnay

Description

@dtolnay

I need to use &CxxString as the key of a BTreeMap or HashMap. However there are some trait impls currently missing, which we should just make delegate to the underlying &[u8]. BTreeMap requires Ord and HashMap requires Hash + Eq.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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