Home
last modified time | relevance | path

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

12345678910

/external/rust/crates/which/src/
Dlib.rs54 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which()
59 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all()
68 T: AsRef<OsStr>, in which_in()
69 U: AsRef<OsStr>, in which_in()
70 V: AsRef<path::Path>, in which_in()
83 T: AsRef<OsStr>, in which_in_all()
84 U: AsRef<OsStr>, in which_in_all()
85 V: AsRef<path::Path>, in which_in_all()
115 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<Path> { in new()
122 pub fn all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = Path>> { in all()
[all …]
Dfinder.rs22 P: AsRef<Path>; in to_absolute()
32 P: AsRef<Path>, in to_absolute()
59 T: AsRef<OsStr>, in find()
60 U: AsRef<OsStr>, in find()
61 V: AsRef<Path>, in find()
81 C: AsRef<Path>, in cwd_search_candidates()
/external/rust/cxx/gen/src/
Dfs.rs38 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { in copy()
47 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { in create_dir_all()
62 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> { in read()
78 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> { in remove_file()
86 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> { in remove_dir()
110 pub(crate) fn symlink_fail(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_fail()
128 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file()
133 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file()
142 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_dir()
150 pub(crate) fn write(path: impl AsRef<Path>, contents: impl AsRef<[u8]>) -> Result<()> { in write()
/external/rust/crates/protobuf-codegen/src/
Dcode_writer.rs27 pub fn write_line<S: AsRef<str>>(&mut self, line: S) { in write_line()
154 pub fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block()
168 pub fn impl_self_block<S: AsRef<str>, F>(&mut self, name: S, cb: F) in impl_self_block()
175 pub fn impl_for_block<S1: AsRef<str>, S2: AsRef<str>, F>(&mut self, tr: S1, ty: S2, cb: F) in impl_for_block()
198 pub fn pub_struct<S: AsRef<str>, F>(&mut self, name: S, cb: F) in pub_struct()
205 pub fn def_struct<S: AsRef<str>, F>(&mut self, name: S, cb: F) in def_struct()
313 pub fn while_block<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in while_block()
321 pub fn if_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_stmt()
329 pub fn if_else_stmt<S: AsRef<str>, F>(&mut self, cond: S, cb: F) in if_else_stmt()
355 pub fn for_stmt<S1: AsRef<str>, S2: AsRef<str>, F>(&mut self, over: S1, varn: S2, cb: F) in for_stmt()
[all …]
/external/rust/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.rs6 pub(crate) fn write(path: impl AsRef<Path>, content: &[u8]) -> Result<()> { in write()
31 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file()
51 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_dir()
/external/libchromeos-rs/src/
Dscoped_path.rs27 pub struct ScopedPath<P: AsRef<Path>>(P);
29 impl<P: AsRef<Path>> ScopedPath<P> {
36 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> {
42 impl<P: AsRef<Path>> Deref for ScopedPath<P> {
50 impl<P: AsRef<Path>> Drop for ScopedPath<P> {
/external/rust/crates/same-file/src/
Dlib.rs145 pub fn from_path<P: AsRef<Path>>(p: P) -> io::Result<Handle> { in from_path()
372 P: AsRef<Path>, in is_same_file()
373 Q: AsRef<Path>, in is_same_file()
451 pub fn soft_link_dir<P: AsRef<Path>, Q: AsRef<Path>>( in soft_link_dir()
460 pub fn soft_link_file<P: AsRef<Path>, Q: AsRef<Path>>( in soft_link_file()
468 pub fn soft_link_dir<P: AsRef<Path>, Q: AsRef<Path>>( in soft_link_dir()
477 pub fn soft_link_file<P: AsRef<Path>, Q: AsRef<Path>>( in soft_link_file()
/external/rust/crates/ring/src/
Daead.rs114 A: AsRef<[u8]>, in open_in_place()
170 A: AsRef<[u8]>, in open_within()
183 fn open_within_<'in_out, A: AsRef<[u8]>>( in open_within_()
280 A: AsRef<[u8]>, in seal_in_place()
302 A: AsRef<[u8]>, in seal_in_place_append_tag()
327 A: AsRef<[u8]>, in seal_in_place_separate_tag()
360 pub struct Aad<A: AsRef<[u8]>>(A);
362 impl<A: AsRef<[u8]>> Aad<A> {
370 impl<A> AsRef<[u8]> for Aad<A>
372 A: AsRef<[u8]>,
[all …]
Dsignature.rs331 impl AsRef<[u8]> for Signature {
340 type PublicKey: AsRef<[u8]> + core::fmt::Debug + Clone + Send + Sized + Sync;
366 pub struct UnparsedPublicKey<B: AsRef<[u8]>> {
371 impl<B: Copy> Copy for UnparsedPublicKey<B> where B: AsRef<[u8]> {}
375 B: AsRef<[u8]>,
385 impl<B: AsRef<[u8]>> UnparsedPublicKey<B> {
Dagreement.rs159 impl AsRef<[u8]> for PublicKey {
183 pub struct UnparsedPublicKey<B: AsRef<[u8]>> {
188 impl<B: Copy> Copy for UnparsedPublicKey<B> where B: AsRef<[u8]> {}
192 B: AsRef<[u8]>,
204 B: AsRef<[u8]>,
214 impl<B: AsRef<[u8]>> UnparsedPublicKey<B> {
255 pub fn agree_ephemeral<B: AsRef<[u8]>, F, R, E>( in agree_ephemeral()
/external/crosvm/sys_util/src/
Dscoped_path.rs35 pub struct ScopedPath<P: AsRef<Path>>(P);
37 impl<P: AsRef<Path>> ScopedPath<P> {
44 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> {
50 impl<P: AsRef<Path>> Deref for ScopedPath<P> {
58 impl<P: AsRef<Path>> Drop for ScopedPath<P> {
/external/rust/crates/walkdir/src/tests/
Dutil.rs95 pub fn join<P: AsRef<Path>>(&self, path: P) -> PathBuf { in join()
117 pub fn mkdirp<P: AsRef<Path>>(&self, path: P) { in mkdirp()
128 pub fn touch<P: AsRef<Path>>(&self, path: P) { in touch()
139 pub fn touch_all<P: AsRef<Path>>(&self, paths: &[P]) { in touch_all()
146 pub fn symlink_file<P1: AsRef<Path>, P2: AsRef<Path>>( in symlink_file()
177 pub fn symlink_dir<P1: AsRef<Path>, P2: AsRef<Path>>( in symlink_dir()
/external/rust/crates/criterion/src/
Dfs.rs15 P: AsRef<Path>, in load()
34 P: AsRef<Path>, in is_dir()
42 P: AsRef<Path>, in mkdirp()
63 P: AsRef<Path>, in save()
74 P: AsRef<Path>, in save_string()
90 P: AsRef<Path>, in list_existing_benchmarks()
/external/rust/crates/futures-util/src/stream/try_stream/
Dinto_async_read.rs17 St::Ok: AsRef<[u8]>,
26 St::Ok: AsRef<[u8]>,
31 enum ReadState<T: AsRef<[u8]>> {
40 St::Ok: AsRef<[u8]>,
53 St::Ok: AsRef<[u8]>,
108 St::Ok: AsRef<[u8]>,
136 St::Ok: AsRef<[u8]>,
/external/rust/crates/clap/src/args/
Darg_matches.rs115 pub fn value_of<S: AsRef<str>>(&self, name: S) -> Option<&str> { in value_of()
147 pub fn value_of_lossy<S: AsRef<str>>(&'a self, name: S) -> Option<Cow<'a, str>> { in value_of_lossy()
183 pub fn value_of_os<S: AsRef<str>>(&self, name: S) -> Option<&OsStr> { in value_of_os()
214 pub fn values_of<S: AsRef<str>>(&'a self, name: S) -> Option<Values<'a>> { in values_of()
251 pub fn values_of_lossy<S: AsRef<str>>(&'a self, name: S) -> Option<Vec<String>> { in values_of_lossy()
294 pub fn values_of_os<S: AsRef<str>>(&'a self, name: S) -> Option<OsValues<'a>> { in values_of_os()
322 pub fn is_present<S: AsRef<str>>(&self, name: S) -> bool { in is_present()
370 pub fn occurrences_of<S: AsRef<str>>(&self, name: S) -> u64 { in occurrences_of()
504 pub fn index_of<S: AsRef<str>>(&self, name: S) -> Option<usize> { in index_of()
586 pub fn indices_of<S: AsRef<str>>(&'a self, name: S) -> Option<Indices<'a>> { in indices_of()
[all …]
/external/rust/crates/bstr/src/
Dext_slice.rs71 pub fn B<'a, B: ?Sized + AsRef<[u8]>>(bytes: &'a B) -> &'a [u8] { in B()
613 fn contains_str<B: AsRef<[u8]>>(&self, needle: B) -> bool { in contains_str()
631 fn starts_with_str<B: AsRef<[u8]>>(&self, prefix: B) -> bool { in starts_with_str()
649 fn ends_with_str<B: AsRef<[u8]>>(&self, suffix: B) -> bool { in ends_with_str()
684 fn find<B: AsRef<[u8]>>(&self, needle: B) -> Option<usize> { in find()
721 fn rfind<B: AsRef<[u8]>>(&self, needle: B) -> Option<usize> { in rfind()
763 fn find_iter<'a, B: ?Sized + AsRef<[u8]>>( in find_iter()
808 fn rfind_iter<'a, B: ?Sized + AsRef<[u8]>>( in rfind_iter()
932 fn find_byteset<B: AsRef<[u8]>>(&self, byteset: B) -> Option<usize> { in find_byteset()
969 fn find_not_byteset<B: AsRef<[u8]>>(&self, byteset: B) -> Option<usize> { in find_not_byteset()
[all …]
/external/rust/crates/either/src/
Dlib.rs30 use std::convert::{AsMut, AsRef};
891 impl<L, R, Target> AsRef<Target> for Either<L, R>
893 L: AsRef<Target>,
894 R: AsRef<Target>,
904 impl<L, R> AsRef<$t> for Either<L, R>
905 where L: AsRef<$t>, R: AsRef<$t>
940 impl<L, R, Target> AsRef<[Target]> for Either<L, R>
942 L: AsRef<[Target]>,
943 R: AsRef<[Target]>,
1113 fn check_ref<T: AsRef<$t>>() {}
[all …]
/external/rust/crates/walkdir/src/
Dutil.rs5 pub fn device_num<P: AsRef<Path>>(path: P) -> io::Result<u64> { in device_num()
12 pub fn device_num<P: AsRef<Path>>(path: P) -> io::Result<u64> { in device_num()
20 pub fn device_num<P: AsRef<Path>>(_: P) -> io::Result<u64> { in device_num()
/external/rust/crates/clap/src/
Dfmt.rs77 T: fmt::Display + AsRef<str>, in good()
85 T: fmt::Display + AsRef<str>, in warning()
93 T: fmt::Display + AsRef<str>, in error()
101 T: fmt::Display + AsRef<str>, in none()
133 impl<T: AsRef<str>> Format<T> {
158 impl<T: AsRef<str>> fmt::Display for Format<T> {
/external/rust/crates/bindgen/src/
Dlib.rs740 pub fn hide_type<T: AsRef<str>>(self, arg: T) -> Builder { in hide_type()
747 pub fn blacklist_type<T: AsRef<str>>(self, arg: T) -> Builder { in blacklist_type()
757 pub fn blocklist_type<T: AsRef<str>>(mut self, arg: T) -> Builder { in blocklist_type()
765 pub fn blacklist_function<T: AsRef<str>>(self, arg: T) -> Builder { in blacklist_function()
775 pub fn blocklist_function<T: AsRef<str>>(mut self, arg: T) -> Builder { in blocklist_function()
784 pub fn blacklist_item<T: AsRef<str>>(mut self, arg: T) -> Builder { in blacklist_item()
796 pub fn blocklist_item<T: AsRef<str>>(mut self, arg: T) -> Builder { in blocklist_item()
807 pub fn opaque_type<T: AsRef<str>>(mut self, arg: T) -> Builder { in opaque_type()
816 pub fn whitelisted_type<T: AsRef<str>>(self, arg: T) -> Builder { in whitelisted_type()
824 pub fn whitelist_type<T: AsRef<str>>(self, arg: T) -> Builder { in whitelist_type()
[all …]
/external/rust/crates/aho-corasick/src/packed/
Dapi.rs297 pub fn add<P: AsRef<[u8]>>(&mut self, pattern: P) -> &mut Builder { in add()
334 P: AsRef<[u8]>, in extend()
425 P: AsRef<[u8]>, in new()
456 pub fn find<B: AsRef<[u8]>>(&self, haystack: B) -> Option<Match> { in find()
489 pub fn find_at<B: AsRef<[u8]>>( in find_at()
532 pub fn find_iter<'a, 'b, B: ?Sized + AsRef<[u8]>>( in find_iter()
/external/rust/crates/csv/src/
Dstring_record.rs44 impl<T: AsRef<[u8]>> PartialEq<Vec<T>> for StringRecord {
50 impl<'a, T: AsRef<[u8]>> PartialEq<Vec<T>> for &'a StringRecord {
56 impl<T: AsRef<[u8]>> PartialEq<[T]> for StringRecord {
62 impl<'a, T: AsRef<[u8]>> PartialEq<[T]> for &'a StringRecord {
664 impl<T: AsRef<str>> From<Vec<T>> for StringRecord {
671 impl<'a, T: AsRef<str>> From<&'a [T]> for StringRecord {
678 impl<T: AsRef<str>> FromIterator<T> for StringRecord {
687 impl<T: AsRef<str>> Extend<T> for StringRecord {
/external/rust/crates/futures-util/src/io/
Dwindow.rs26 impl<T: AsRef<[u8]>> Window<T> {
97 impl<T: AsRef<[u8]>> AsRef<[u8]> for Window<T> {
/external/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 …]

12345678910