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)?
Should
Identfromproc-macro20.4 have following trait implementations likeIdentfromsyn0.13?From<&'a str>;From<Cow<'a, str>>;From<String>;AsRef<str>(however this one makesimpl PartialEq<T: AsRef<str> + ?Sized>conflict withimpl PartialEq).Also in case of the last one, is a quote from: rust-lang/rust#50473
relevant here (as in
Ident::as_strbeing equivalent to<Ident as AsRef<str>>::as_ref)?