Lines Matching defs:str
19 pub(crate) fn from_ref(name: &str) -> Self {
25 pub(crate) fn from_static_ref(name: &'static str) -> Self {
36 pub fn as_str(&self) -> &str {
61 impl From<&'static str> for Str {
62 fn from(name: &'static str) -> Self {
67 impl From<&'_ &'static str> for Str {
68 fn from(name: &'_ &'static str) -> Self {
112 type Target = str;
115 fn deref(&self) -> &str {
120 impl AsRef<str> for Str {
122 fn as_ref(&self) -> &str {
148 impl std::borrow::Borrow<str> for Str {
150 fn borrow(&self) -> &str {
155 impl PartialEq<str> for Str {
157 fn eq(&self, other: &str) -> bool {
161 impl PartialEq<Str> for str {
168 impl PartialEq<&'_ str> for Str {
170 fn eq(&self, other: &&str) -> bool {
174 impl PartialEq<Str> for &'_ str {
224 Static(&'static str),
225 Owned(Box<str>),
233 pub(crate) fn from_ref(name: &str) -> Self {
237 pub(crate) fn from_static_ref(name: &'static str) -> Self {
241 pub(crate) fn as_str(&self) -> &str {
260 pub(crate) struct Inner(pub(crate) &'static str);
263 pub(crate) fn from_static_ref(name: &'static str) -> Self {
267 pub(crate) fn as_str(&self) -> &str {