/third_party/rust/crates/which-rs/src/ |
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<OsStr>, in which_in_all() [all …]
|
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()
|
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/ |
D | fs.rs | 47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { in copy() 56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { in create_dir_all() 71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool { in exists() 78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> { in read() 94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> { in remove_file() 102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> { in remove_dir() 126 pub(crate) fn symlink_fail(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_fail() 144 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file() 149 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file() 158 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_dir() [all …]
|
/third_party/rust/crates/cxx/gen/build/src/ |
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>, in symlink_or_copy() 48 link: impl AsRef<Path>, in symlink_or_copy() 62 original: impl AsRef<Path>, in symlink_or_copy() 63 copy: impl AsRef<Path>, in symlink_or_copy()
|
D | out.rs | 7 pub(crate) fn write(path: impl AsRef<Path>, content: &[u8]) -> Result<()> { in write() 32 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file() 66 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_dir()
|
/third_party/rust/crates/bitflags/tests/ |
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/ |
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/os_str_bytes/tests/ |
D | common.rs | 36 T: 'a + AsRef<OsStr> + OsStrBytes + ?Sized, 37 U: AsRef<OsStr>, 40 result.as_ref().map(AsRef::as_ref), 41 T::from_raw_bytes(string).as_deref().map(AsRef::as_ref),
|
/third_party/rust/crates/aho-corasick/src/packed/ |
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/aho-corasick/src/ |
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<[u8]>, in stream_replace_all() [all …]
|
/third_party/rust/crates/either/src/ |
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<[Target]>, 1438 fn check_ref<T: AsRef<$t>>() {} [all …]
|
/third_party/rust/crates/bindgen/bindgen/ |
D | lib.rs | 877 pub fn blocklist_type<T: AsRef<str>>(mut self, arg: T) -> Builder { 892 pub fn blocklist_function<T: AsRef<str>>(mut self, arg: T) -> Builder { 904 pub fn blocklist_item<T: AsRef<str>>(mut self, arg: T) -> Builder { 913 pub fn blocklist_file<T: AsRef<str>>(mut self, arg: T) -> Builder { 924 pub fn opaque_type<T: AsRef<str>>(mut self, arg: T) -> Builder { 936 pub fn allowlist_type<T: AsRef<str>>(mut self, arg: T) -> Builder { 952 pub fn allowlist_function<T: AsRef<str>>(mut self, arg: T) -> Builder { 964 pub fn allowlist_var<T: AsRef<str>>(mut self, arg: T) -> Builder { 972 pub fn allowlist_file<T: AsRef<str>>(mut self, arg: T) -> Builder { 996 pub fn bitfield_enum<T: AsRef<str>>(mut self, arg: T) -> Builder { [all …]
|
/third_party/rust/crates/codespan/codespan-reporting/src/ |
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/regex/src/ |
D | re_trait.rs | 195 R::Text: 't + AsRef<[u8]>, 228 R::Text: 't + AsRef<[u8]>, 259 R::Text: 't + AsRef<[u8]>, 292 R::Text: 't + AsRef<[u8]>,
|
/third_party/rust/crates/clap/src/parser/features/ |
D | suggestions.rs | 13 T: AsRef<str>, in did_you_mean() 31 T: AsRef<str>, in did_you_mean() 46 T: AsRef<str>, in did_you_mean_flag()
|
/third_party/rust/crates/heck/src/ |
D | kebab.rs | 38 pub struct AsKebabCase<T: AsRef<str>>(pub T); 40 impl<T: AsRef<str>> fmt::Display for AsKebabCase<T> {
|
D | title.rs | 39 pub struct AsTitleCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsTitleCase<T> {
|
D | shouty_kebab.rs | 39 pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsShoutyKebabCase<T> {
|
D | lower_camel.rs | 39 pub struct AsLowerCamelCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsLowerCamelCase<T> {
|
D | shouty_snake.rs | 53 pub struct AsShoutySnakeCase<T: AsRef<str>>(pub T); 55 impl<T: AsRef<str>> fmt::Display for AsShoutySnakeCase<T> {
|
D | upper_camel.rs | 52 pub struct AsUpperCamelCase<T: AsRef<str>>(pub T); 54 impl<T: AsRef<str>> fmt::Display for AsUpperCamelCase<T> {
|
D | train.rs | 39 pub struct AsTrainCase<T: AsRef<str>>(pub T); 41 impl<T: AsRef<str>> fmt::Display for AsTrainCase<T> {
|
/third_party/rust/crates/clap/src/builder/ |
D | str.rs | 120 impl AsRef<str> for Str { 127 impl AsRef<[u8]> for Str { 134 impl AsRef<std::ffi::OsStr> for Str { 141 impl AsRef<std::path::Path> for Str {
|
/third_party/rust/crates/nix/src/sys/ |
D | aio.rs | 496 impl AsRef<libc::aiocb> for AioFsync { 612 impl<'a> AsRef<libc::aiocb> for AioRead<'a> { 736 impl<'a> AsRef<libc::aiocb> for AioReadv<'a> { 848 impl<'a> AsRef<libc::aiocb> for AioWrite<'a> { 969 impl<'a> AsRef<libc::aiocb> for AioWritev<'a> { 1051 list: &[&dyn AsRef<libc::aiocb>], in aio_suspend() 1054 let p = list as *const [&dyn AsRef<libc::aiocb>] in aio_suspend()
|