/third_party/rust/crates/which-rs/src/ |
H A D | lib.rs | 56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which() 80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which_global() 85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all() 96 pub fn which_all_global<T: AsRef<OsStr>>( in which_all_global() 151 T: AsRef<OsStr>, in which_in() 152 U: AsRef<OsStr>, in which_in() 153 V: AsRef<path::Path>, in which_in() 188 T: AsRef<OsStr>, in which_re_in() 204 T: AsRef<OsStr>, in which_in_all() 205 U: AsRef<OsSt in which_in_all() [all...] |
H A D | finder.rs | 26 P: AsRef<Path>; in to_absolute() 36 P: AsRef<Path>, in to_absolute() 63 T: AsRef<OsStr>, in find() 64 U: AsRef<OsStr>, in find() 65 V: AsRef<Path>, in find() 96 T: AsRef<OsStr>, in find_re() 124 C: AsRef<Path>, in cwd_search_candidates()
|
H A D | helper.rs | 4 pub fn has_executable_extension<T: AsRef<Path>, S: AsRef<str>>(path: T, pathext: &[S]) -> bool { in has_executable_extension()
|
/third_party/rust/crates/cxx/gen/src/ |
H A D | fs.rs | 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool { 78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> { 94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> { 102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> { 126 pub(crate) fn symlink_fail(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { 144 pub(crate) fn symlink_file(original: impl AsRef<Pat [all...] |
/third_party/rust/crates/cxx/gen/cmd/src/gen/ |
H A D | fs.rs | 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool { 78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> { 94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> { 102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> { 126 pub(crate) fn symlink_fail(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { 144 pub(crate) fn symlink_file(original: impl AsRef<Pat [all...] |
/third_party/rust/crates/cxx/gen/build/src/gen/ |
H A D | fs.rs | 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool { 78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> { 94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> { 102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> { 126 pub(crate) fn symlink_fail(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { 144 pub(crate) fn symlink_file(original: impl AsRef<Pat [all...] |
/third_party/rust/crates/cxx/gen/lib/src/gen/ |
H A D | fs.rs | 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { 71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool { 78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> { 94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> { 102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> { 126 pub(crate) fn symlink_fail(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { 144 pub(crate) fn symlink_file(original: impl AsRef<Pat [all...] |
/third_party/rust/crates/cxx/gen/build/src/ |
H A D | paths.rs | 31 fn with_appended_extension(&self, suffix: impl AsRef<OsStr>) -> PathBuf; in with_appended_extension() 35 fn with_appended_extension(&self, suffix: impl AsRef<OsStr>) -> PathBuf { in with_appended_extension() 47 original: impl AsRef<Path>, 48 link: impl AsRef<Path>, 62 original: impl AsRef<Path>, 63 copy: impl AsRef<Path>,
|
H A D | out.rs | 7 pub(crate) fn write(path: impl AsRef<Path>, content: &[u8]) -> Result<()> { 32 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { 66 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> {
|
/third_party/rust/crates/bitflags/tests/ |
H A D | compile.rs | 32 fn prepare_stderr_files(path: impl AsRef<Path>) -> io::Result<()> { in prepare_stderr_files() 54 fn rename_beta_stderr(from: impl AsRef<Path>, to: impl AsRef<Path>) -> io::Result<()> { in rename_beta_stderr() 61 fn rename_beta_stderr(_: impl AsRef<Path>, _: impl AsRef<Path>) -> io::Result<()> { in rename_beta_stderr()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | string.rs | 3 use std::convert::AsRef; 35 impl AsRef<str> for OpensslString { 41 impl AsRef<[u8]> for OpensslString { 58 impl AsRef<str> for OpensslStringRef { 64 impl AsRef<[u8]> for OpensslStringRef {
|
/third_party/rust/crates/aho-corasick/src/ |
H A D | ahocorasick.rs | 122 P: AsRef<[u8]>, in new() 156 B: AsRef<[u8]>, in new_auto_configured() 183 pub fn is_match<B: AsRef<[u8]>>(&self, haystack: B) -> bool { in is_match() 211 pub fn earliest_find<B: AsRef<[u8]>>(&self, haystack: B) -> Option<Match> { in earliest_find() 283 pub fn find<B: AsRef<[u8]>>(&self, haystack: B) -> Option<Match> { in find() 350 pub fn find_iter<'a, 'b, B: ?Sized + AsRef<[u8]>>( in find_iter() 393 pub fn find_overlapping_iter<'a, 'b, B: ?Sized + AsRef<[u8]>>( in find_overlapping_iter() 431 B: AsRef<str>, in replace_all() 482 B: AsRef<[u8]>, in replace_all_bytes() 759 B: AsRef<[u in stream_find_iter() [all...] |
/third_party/rust/crates/aho-corasick/src/packed/ |
H A D | api.rs | 291 pub fn add<P: AsRef<[u8]>>(&mut self, pattern: P) -> &mut Builder { in add() 328 P: AsRef<[u8]>, in extend() 418 P: AsRef<[u8]>, in new() 449 pub fn find<B: AsRef<[u8]>>(&self, haystack: B) -> Option<Match> { in find() 482 pub fn find_at<B: AsRef<[u8]>>( in find_at() 525 pub fn find_iter<'a, 'b, B: ?Sized + AsRef<[u8]>>( in find_iter()
|
/third_party/rust/crates/either/src/ |
H A D | lib.rs | 27 use core::convert::{AsMut, AsRef}; 1178 impl<L, R, Target> AsRef<Target> for Either<L, R> 1180 L: AsRef<Target>, 1181 R: AsRef<Target>, 1191 impl<L, R> AsRef<$t> for Either<L, R> 1192 where L: AsRef<$t>, R: AsRef<$t> 1227 impl<L, R, Target> AsRef<[Target]> for Either<L, R> 1229 L: AsRef<[Target]>, 1230 R: AsRef<[Targe [all...] |
/third_party/rust/crates/bindgen/bindgen/ |
H A D | lib.rs | 877 pub fn blocklist_type<T: AsRef<str>>(mut self, arg: T) -> Builder { in blocklist_type() 892 pub fn blocklist_function<T: AsRef<str>>(mut self, arg: T) -> Builder { in blocklist_function() 904 pub fn blocklist_item<T: AsRef<str>>(mut self, arg: T) -> Builder { in blocklist_item() 913 pub fn blocklist_file<T: AsRef<str>>(mut self, arg: T) -> Builder { in blocklist_file() 924 pub fn opaque_type<T: AsRef<str>>(mut self, arg: T) -> Builder { in opaque_type() 936 pub fn allowlist_type<T: AsRef<str>>(mut self, arg: T) -> Builder { in allowlist_type() 952 pub fn allowlist_function<T: AsRef<str>>(mut self, arg: T) -> Builder { in allowlist_function() 964 pub fn allowlist_var<T: AsRef<str>>(mut self, arg: T) -> Builder { in allowlist_var() 972 pub fn allowlist_file<T: AsRef<str>>(mut self, arg: T) -> Builder { in allowlist_file() 996 pub fn bitfield_enum<T: AsRef<st [all...] |
/third_party/rust/crates/heck/src/ |
H A D | shouty_kebab.rs | 39 pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsShoutyKebabCase<T> {
|
H A D | title.rs | 39 pub struct AsTitleCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsTitleCase<T> {
|
H A D | kebab.rs | 38 pub struct AsKebabCase<T: AsRef<str>>(pub T); 40 impl<T: AsRef<str>> fmt::Display for AsKebabCase<T> {
|
H A D | shouty_snake.rs | 53 pub struct AsShoutySnakeCase<T: AsRef<str>>(pub T); 55 impl<T: AsRef<str>> fmt::Display for AsShoutySnakeCase<T> {
|
H A D | upper_camel.rs | 52 pub struct AsUpperCamelCase<T: AsRef<str>>(pub T); 54 impl<T: AsRef<str>> fmt::Display for AsUpperCamelCase<T> {
|
H A D | train.rs | 39 pub struct AsTrainCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsTrainCase<T> {
|
H A D | lower_camel.rs | 39 pub struct AsLowerCamelCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsLowerCamelCase<T> {
|
/third_party/rust/crates/clap/src/parser/features/ |
H A D | suggestions.rs | 13 T: AsRef<str>, 31 T: AsRef<str>, 46 T: AsRef<str>,
|
/third_party/rust/crates/codespan/codespan-reporting/src/ |
H A D | files.rs | 92 type Source: 'a + AsRef<str>; 276 Source: AsRef<str>, 320 Source: 'a + AsRef<str>, 362 Source: AsRef<str>, 386 Source: 'a + AsRef<str>,
|
/third_party/rust/crates/codespan/codespan/src/ |
H A D | file.rs | 46 Source: AsRef<str>, 55 Source: AsRef<str>, 227 Source: AsRef<str>, 276 Source: AsRef<str>,
|