Lines Matching refs:str
123 ($str:literal) => {{
124 const S: &'static str = $str;
125 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
280 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str() argument
281 core::str::from_utf8(self.as_bytes()) in to_str()
302 pub unsafe fn as_str_unchecked(&self) -> &str { in as_str_unchecked() argument
304 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()
514 ($str:expr) => {{
515 const S: &str = concat!($str, "\0");
516 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
537 type Target = str;
539 fn deref(&self) -> &str { in deref() argument
550 const ALL_ASCII_CHARS: &'static str = variable
725 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
777 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()