Lines Matching refs:str
14 use core::str::{self, Utf8Error};
139 /// it as a Rust &str, otherwise an error.
140 pub fn to_str(&self) -> Result<&str, Utf8Error> {
141 str::from_utf8(self.as_bytes())
145 /// a view as a Cow::Borrowed &str. Otherwise replaces any invalid UTF-8
152 pub fn to_string_lossy(&self) -> Cow<str> {
200 pub fn push_str(self: Pin<&mut Self>, s: &str) {
228 impl PartialEq<CxxString> for str {
234 impl PartialEq<str> for CxxString {
235 fn eq(&self, other: &str) -> bool {
261 fn write_str(&mut self, s: &str) -> fmt::Result {