Lines Matching refs:str
12 pub(crate) const HELP: &'static str = "help";
13 pub(crate) const VERSION: &'static str = "version";
14 pub(crate) const EXTERNAL: &'static str = "";
16 pub(crate) fn from_static_ref(name: &'static str) -> Self {
21 pub fn as_str(&self) -> &str {
62 impl From<&'static str> for Id {
63 fn from(name: &'static str) -> Self {
68 impl From<&'_ &'static str> for Id {
69 fn from(name: &'_ &'static str) -> Self {
100 impl AsRef<str> for Id {
102 fn as_ref(&self) -> &str {
107 impl std::borrow::Borrow<str> for Id {
109 fn borrow(&self) -> &str {
114 impl PartialEq<str> for Id {
116 fn eq(&self, other: &str) -> bool {
120 impl PartialEq<Id> for str {
127 impl PartialEq<&'_ str> for Id {
129 fn eq(&self, other: &&str) -> bool {
133 impl PartialEq<Id> for &'_ str {