Lines Matching refs:str
171 ($str:literal) => {{
172 const S: &'static str = $str;
173 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
360 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str() argument
361 core::str::from_utf8(self.as_bytes()) in to_str()
382 pub unsafe fn as_str_unchecked(&self) -> &str { in as_str_unchecked() argument
384 unsafe { core::str::from_utf8_unchecked(self.as_bytes()) } in as_str_unchecked()
596 ($str:expr) => {{
597 const S: &str = concat!($str, "\0");
598 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
616 const ALL_ASCII_CHARS: &str =
799 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
851 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()