Home
last modified time | relevance | path

Searched refs:AsRef (Results 1 – 25 of 181) sorted by relevance

12345678

/third_party/rust/crates/which-rs/src/
Dlib.rs56 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 …]
Dfinder.rs26 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()
Dhelper.rs4 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/
Dfs.rs47 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/
Dpaths.rs31 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()
Dout.rs7 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/
Dcompile.rs32 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/
Dstring.rs3 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/
Dcommon.rs36 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/
Dapi.rs291 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/
Dahocorasick.rs122 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/
Dlib.rs27 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/
Dlib.rs877 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/
Dfiles.rs92 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/
Dre_trait.rs195 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/
Dsuggestions.rs13 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/
Dkebab.rs38 pub struct AsKebabCase<T: AsRef<str>>(pub T);
40 impl<T: AsRef<str>> fmt::Display for AsKebabCase<T> {
Dtitle.rs39 pub struct AsTitleCase<T: AsRef<str>>(pub T);
41 impl<T: AsRef<str>> fmt::Display for AsTitleCase<T> {
Dshouty_kebab.rs39 pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T);
41 impl<T: AsRef<str>> fmt::Display for AsShoutyKebabCase<T> {
Dlower_camel.rs39 pub struct AsLowerCamelCase<T: AsRef<str>>(pub T);
41 impl<T: AsRef<str>> fmt::Display for AsLowerCamelCase<T> {
Dshouty_snake.rs53 pub struct AsShoutySnakeCase<T: AsRef<str>>(pub T);
55 impl<T: AsRef<str>> fmt::Display for AsShoutySnakeCase<T> {
Dupper_camel.rs52 pub struct AsUpperCamelCase<T: AsRef<str>>(pub T);
54 impl<T: AsRef<str>> fmt::Display for AsUpperCamelCase<T> {
Dtrain.rs39 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/
Dstr.rs120 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/
Daio.rs496 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()

12345678