Skip to content

Convenience trait implementations on Ident #93

Description

@hcpl

Should Ident from proc-macro2 0.4 have following trait implementations like Ident from syn 0.13?

  • From<&'a str>;
  • From<Cow<'a, str>>;
  • From<String>;
  • AsRef<str> (however this one makes impl PartialEq<T: AsRef<str> + ?Sized> conflict with impl PartialEq).

Also in case of the last one, is a quote from: rust-lang/rust#50473

  • Removed APIs: Ident::as_str, use Display impl for Ident instead.

relevant here (as in Ident::as_str being equivalent to <Ident as AsRef<str>>::as_ref)?

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