Skip to content

Index trait should provide get(&self, key: &Q) -> Option<&V> #1790

Closed
@solidsnack

Description

@solidsnack
  • Or a similar trait should exist and be provided by the standard indexable collections.

  • Or maybe there is a generic way to do this with indexable collections already, in which case it would be nice to see it documented alongside Index.

  • Or a Contains trait with contains(&self, key: &Q) -> bool can be used to similar effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions