Home
last modified time | relevance | path

Searched refs:as_str (Results 51 - 75 of 126) sorted by relevance

123456

/third_party/rust/crates/unicode-width/src/
H A Dtests.rs102 b.iter(|| test::black_box(UnicodeWidthStr::width(string.as_str()))); in enwik8()
111 b.iter(|| test::black_box(UnicodeWidthStr::width(string.as_str()))); in jawiki()
/third_party/rust/crates/regex/tests/
H A Dapi_str.rs31 assert_eq!(caps.get(0).map(|m| m.as_str()), Some("foo")); in match_as_str()
H A Dmacros_str.rs4 macro_rules! match_text { ($text:expr) => { $text.as_str() } }
/third_party/rust/crates/version_check/src/
H A Dchannel.rs72 fn as_str(&self) -> &'static str { in as_str() functions
191 write!(f, "{}", self.as_str()) in fmt()
/third_party/rust/crates/once_cell/examples/
H A Dregex.rs21 let size = usize::from_str(re.captures(s).unwrap().get(7).unwrap().as_str()).unwrap(); in slow()
35 let size = usize::from_str(re.captures(s).unwrap().get(7).unwrap().as_str()).unwrap(); in fast()
/third_party/rust/crates/rust-cexpr/src/
H A Dexpr.rs78 result_opt!(fn as_str: Str -> Vec<u8>);
452 map_opt(|i| self.literal(i), EvalResult::as_str), in string()
453 map_opt(|i| self.identifier(i), EvalResult::as_str), in string()
/kernel/linux/linux-6.6/rust/macros/
H A Dvtable.rs14 TokenTree::Ident(ident) => match ident.to_string().as_str() {
H A Dpaste.rs26 match ident.to_string().as_str() { in concat()
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Datom.rs27 Self::from_str(ident.to_string().as_str()) in from()
H A Dderive.rs28 let what = match ident.to_string().as_str() { in from()
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Dderive.rs28 let what = match ident.to_string().as_str() { in from()
H A Datom.rs27 Self::from_str(ident.to_string().as_str()) in from()
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Dderive.rs28 let what = match ident.to_string().as_str() { in from()
H A Datom.rs27 Self::from_str(ident.to_string().as_str()) in from()
/third_party/rust/crates/cxx/syntax/
H A Datom.rs27 Self::from_str(ident.to_string().as_str()) in from()
H A Dderive.rs28 let what = match ident.to_string().as_str() { in from()
/third_party/rust/crates/cxx/macro/src/syntax/
H A Datom.rs27 Self::from_str(ident.to_string().as_str()) in from()
H A Dderive.rs28 let what = match ident.to_string().as_str() { in from()
/third_party/rust/crates/clap/src/error/
H A Dkind.rs317 pub fn as_str(self) -> Option<&'static str> { in as_str() functions
346 self.as_str().unwrap_or_default().fmt(f)
/third_party/rust/crates/syn/src/
H A Dident.rs59 match ident.to_string().as_str() { in accept_as_ident()
/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dhelpers.rs145 let prefix = TokenStream::from_str(prefix.as_str()).unwrap(); in c_void()
166 let prefix = TokenStream::from_str(prefix.as_str()).unwrap(); in raw_type()
/third_party/rust/crates/log/src/
H A Dlib.rs578 fmt.pad(self.as_str()) in fmt()
609 pub fn as_str(&self) -> &'static str { in as_str() functions
756 fmt.pad(self.as_str()) in fmt()
790 pub fn as_str(&self) -> &'static str { in as_str() functions
1742 assert_eq!(*expected, input.as_str()); in test_level_as_str()
1796 assert_eq!(*expected, input.as_str()); in test_level_filter_as_str()
/third_party/rust/crates/bindgen/bindgen/ir/
H A Dannotations.rs177 match attr.name.as_str() { in parse()
/third_party/rust/crates/clap/clap_derive/src/utils/
H A Dty.rs44 pub fn as_str(&self) -> &'static str { in as_str() functions
/third_party/rust/crates/rustix/src/path/
H A Ddec_int.rs72 pub fn as_str(&self) -> &str { in as_str() functions
124 self.as_str().fmt(fmt)

Completed in 9 milliseconds

123456