/external/rust/crates/nix/test/sys/ |
D | test_inotify.rs | 3 use std::ffi::OsString; 21 assert_eq!(events[0].name, Some(OsString::from("test"))); in test_inotify() 50 assert_eq!(events[0].name, Some(OsString::from("test"))); in test_inotify_multi_events() 53 assert_eq!(events[1].name, Some(OsString::from("test"))); in test_inotify_multi_events() 56 assert_eq!(events[2].name, Some(OsString::from("test"))); in test_inotify_multi_events() 59 assert_eq!(events[3].name, Some(OsString::from("test"))); in test_inotify_multi_events() 62 assert_eq!(events[4].name, Some(OsString::from("test2"))); in test_inotify_multi_events()
|
/external/rust/crates/clap/src/builder/ |
D | os_str.rs | 14 pub(crate) fn from_string(name: std::ffi::OsString) -> Self { in from_string() 39 pub fn to_os_string(&self) -> std::ffi::OsString { in to_os_string() argument 84 impl From<std::ffi::OsString> for OsStr { 85 fn from(name: std::ffi::OsString) -> Self { in from() 91 impl From<&'_ std::ffi::OsString> for OsStr { 92 fn from(name: &'_ std::ffi::OsString) -> Self { in from() 135 impl From<OsStr> for std::ffi::OsString { implementation 143 std::ffi::OsString::from(name).into() in from() 236 impl PartialEq<std::ffi::OsString> for OsStr { 238 fn eq(&self, other: &std::ffi::OsString) -> bool { in eq() [all …]
|
D | value_parser.rs | 67 OsString, enumerator 192 Self(ValueParserInner::OsString) in os_string() 253 ValueParserInner::OsString => &OsStringValueParser {}, in any_value_parser() 551 ValueParserInner::OsString => f.debug_struct("ValueParser::os_string").finish(), in fmt() 563 ValueParserInner::OsString => ValueParserInner::OsString, in clone() 583 value: std::ffi::OsString, in parse() argument 615 value: std::ffi::OsString, in parse() argument 706 value: std::ffi::OsString, in parse() argument 876 value: std::ffi::OsString, in parse() argument 909 type Value = std::ffi::OsString; [all …]
|
/external/rust/crates/bstr/src/ |
D | ext_vec.rs | 11 ffi::{OsStr, OsString}, 185 fn from_os_string(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string() argument 188 fn imp(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string() argument 196 fn imp(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string() argument 506 fn into_os_string(self) -> Result<OsString, FromUtf8Error> in into_os_string() argument 512 fn imp(v: Vec<u8>) -> Result<OsString, FromUtf8Error> { in into_os_string() argument 515 Ok(OsString::from_vec(v)) in into_os_string() 520 fn imp(v: Vec<u8>) -> Result<OsString, FromUtf8Error> { in into_os_string() argument 521 v.into_string().map(OsString::from) in into_os_string() 550 fn into_os_string_lossy(self) -> OsString in into_os_string_lossy() [all …]
|
/external/rust/crates/clap/src/parser/matches/ |
D | matched_arg.rs | 3 ffi::{OsStr, OsString}, 21 raw_vals: Vec<Vec<OsString>>, 94 pub(crate) fn raw_vals(&self) -> Iter<Vec<OsString>> { in raw_vals() argument 98 pub(crate) fn raw_vals_flatten(&self) -> Flatten<Iter<Vec<OsString>>> { in raw_vals_flatten() argument 107 pub(crate) fn first_raw(&self) -> Option<&OsString> { in first_raw() argument 116 pub(crate) fn append_val(&mut self, val: AnyValue, raw_val: OsString) { in append_val() argument 150 OsString::as_os_str(v) == OsStr::new(val) in check_explicit() 223 assert_eq!(m.first_raw(), Some(&OsString::from("bbb"))); in test_grouped_vals_first()
|
D | arg_matches.rs | 3 use std::ffi::{OsStr, OsString}; 1135 iter: values.map(OsString::as_os_str), in try_get_raw() 1153 iter: g.iter().map(OsString::as_os_str), in try_get_raw_occurrences() 1526 iter: Map<Flatten<Iter<'a, Vec<OsString>>>, fn(&OsString) -> &OsStr>, 1552 static EMPTY: [Vec<OsString>; 0] = []; in default() 1743 iter: Map<Iter<'a, Vec<OsString>>, fn(&Vec<OsString>) -> RawOccurrenceValues<'_>>, 1768 static EMPTY: [Vec<OsString>; 0] = []; in default() 1778 iter: Map<Iter<'a, OsString>, fn(&OsString) -> &OsStr>, 1945 .get_many::<std::ffi::OsString>("POTATO") in os_values_exact_size()
|
/external/rust/crates/clap/3.2.23/src/parser/matches/ |
D | matched_arg.rs | 3 ffi::{OsStr, OsString}, 22 raw_vals: Vec<Vec<OsString>>, 110 pub(crate) fn raw_vals_flatten(&self) -> Flatten<Iter<Vec<OsString>>> { in raw_vals_flatten() argument 119 pub(crate) fn first_raw(&self) -> Option<&OsString> { in first_raw() argument 128 pub(crate) fn append_val(&mut self, val: AnyValue, raw_val: OsString) { in append_val() argument 162 OsString::as_os_str(v) == OsStr::new(val) in check_explicit() 238 assert_eq!(m.first_raw(), Some(&OsString::from("bbb"))); in test_grouped_vals_first()
|
/external/rust/crates/protobuf-parse/src/protoc/ |
D | command.rs | 12 use std::ffi::OsString; 59 extra_args: Vec<OsString>, 106 pub fn extra_arg(&mut self, arg: impl Into<OsString>) -> &mut Self { in extra_arg() 112 pub fn extra_args(&mut self, args: impl IntoIterator<Item = impl Into<OsString>>) -> &mut Self { in extra_args() 135 let mut flag = OsString::from("-I"); in write_descriptor_set() 141 let mut descriptor_set_out_flag = OsString::from("--descriptor_set_out="); in write_descriptor_set() 163 exec: OsString, 250 fn run_with_args(&self, args: Vec<OsString>, capture_stderr: bool) -> anyhow::Result<()> { in run_with_args() argument
|
/external/rust/crates/clap/3.2.23/src/ |
D | derive.rs | 6 use std::ffi::OsString; 104 T: Into<OsString> + Clone, in parse_from() 123 T: Into<OsString> + Clone, in try_parse_from() 133 T: Into<OsString> + Clone, in update_from() 149 T: Into<OsString> + Clone, in try_update_from() 223 T: Into<OsString> + Clone, in from_iter() 241 T: Into<OsString> + Clone, in from_iter_safe() 514 It: Into<OsString> + Clone, in parse_from() 522 It: Into<OsString> + Clone, in try_parse_from()
|
D | mkeymap.rs | 3 use std::{ffi::OsStr, ffi::OsString}; 28 Long(OsString), 180 let key = KeyType::Long(OsString::from(long)); in append_keys() 189 let key = KeyType::Long(OsString::from(long)); in append_keys()
|
/external/rust/crates/clap/examples/ |
D | git-derive.rs | 2 use std::ffi::OsString; 27 base: Option<OsString>, 29 head: Option<OsString>, 31 path: Option<OsString>, 58 External(Vec<OsString>),
|
/external/rust/crates/clap/src/ |
D | derive.rs | 7 use std::ffi::OsString; 105 T: Into<OsString> + Clone, in parse_from() 124 T: Into<OsString> + Clone, in try_parse_from() 134 T: Into<OsString> + Clone, in update_from() 150 T: Into<OsString> + Clone, in try_update_from() 409 It: Into<OsString> + Clone, in parse_from() 417 It: Into<OsString> + Clone, in try_parse_from()
|
/external/rust/crates/libloading/src/ |
D | lib.rs | 54 use std::ffi::{OsStr, OsString}; 73 pub fn library_filename<S: AsRef<OsStr>>(name: S) -> OsString { in library_filename() argument 75 let mut string = OsString::with_capacity(name.len() + DLL_PREFIX.len() + DLL_SUFFIX.len()); in library_filename()
|
/external/rust/crates/os_str_bytes/src/windows/ |
D | mod.rs | 8 use std::ffi::OsString; 62 fn from_bytes(string: &[u8]) -> Result<Option<OsString>> { in from_bytes() argument 102 pub(super) fn os_string_from_vec(string: Vec<u8>) -> Result<OsString> { in os_string_from_vec() argument 111 pub(super) fn os_string_into_vec(os_string: OsString) -> Vec<u8> { in os_string_into_vec()
|
/external/rust/crates/os_str_bytes/src/ |
D | lib.rs | 186 use std::ffi::OsString; 564 impl OsStringBytes for OsString { implementation 584 OsString::assert_from_raw_vec(string).into() in assert_from_raw_vec() 589 OsString::from_raw_vec(string).map(Into::into) in from_raw_vec() 600 use std::ffi::OsString; 614 impl Sealed for OsString {} implementation
|
/external/rust/crates/tempfile/src/ |
D | util.rs | 2 use std::ffi::{OsStr, OsString}; 8 fn tmpname(prefix: &OsStr, suffix: &OsStr, rand_len: usize) -> OsString { in tmpname() argument 9 let mut buf = OsString::with_capacity(prefix.len() + suffix.len() + rand_len); in tmpname()
|
/external/rust/crates/os_str_bytes/src/common/ |
D | mod.rs | 4 use std::ffi::OsString; 37 pub(super) fn os_string_from_vec(string: Vec<u8>) -> Result<OsString> { in os_string_from_vec() argument 41 pub(super) fn os_string_into_vec(os_string: OsString) -> Vec<u8> { in os_string_into_vec()
|
/external/crosvm/win_util/src/ |
D | dll_notification.rs | 6 use std::ffi::OsString; 156 pub full_dll_name: OsString, 157 pub base_dll_name: OsString, 374 let mut loaded_dlls: HashSet<OsString> = HashSet::new(); in load_dll() 397 loaded_dlls.contains::<OsString>(&(TEST_DLL_NAME_1.to_owned().into())), in load_dll() 413 let mut unloaded_dlls: HashSet<OsString> = HashSet::new(); in unload_dll() 457 unloaded_dlls.contains::<OsString>(&(TEST_DLL_NAME_2.to_owned().into())), in unload_dll()
|
/external/rust/crates/os_str_bytes/src/wasm/ |
D | mod.rs | 4 use std::ffi::OsString; 50 pub(super) fn os_string_from_vec(string: Vec<u8>) -> Result<OsString> { in os_string_from_vec() argument 56 pub(super) fn os_string_into_vec(os_string: OsString) -> Vec<u8> { in os_string_into_vec()
|
/external/rust/crates/csv/examples/ |
D | tutorial-write-02.rs | 1 use std::{env, error::Error, ffi::OsString, process}; 30 fn get_first_arg() -> Result<OsString, Box<dyn Error>> { in get_first_arg()
|
D | tutorial-read-01.rs | 1 use std::{env, error::Error, ffi::OsString, fs::File, process}; 16 fn get_first_arg() -> Result<OsString, Box<dyn Error>> { in get_first_arg()
|
/external/rust/crates/clap_lex/src/ |
D | lib.rs | 113 use std::ffi::OsString; 123 items: Vec<OsString>, 159 pub fn new(iter: impl IntoIterator<Item = impl Into<std::ffi::OsString>>) -> Self { in new() 237 insert_items: impl IntoIterator<Item = impl Into<OsString>>, in insert() 254 T: Into<OsString>,
|
/external/rust/crates/os_str_bytes/ |
D | README.md | 4 [`OsString`], without resorting to panics or corruption for invalid UTF-8. 8 Typically, the only way to losslessly construct [`OsStr`] or [`OsString`] from 102 [`OsString`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html
|
/external/rust/crates/clap/3.2.23/src/builder/ |
D | value_parser.rs | 67 OsString, enumerator 194 Self(ValueParserInner::OsString) in os_string() 255 ValueParserInner::OsString => &OsStringValueParser {}, in any_value_parser() 519 ValueParserInner::OsString => f.debug_struct("ValueParser::os_string").finish(), in fmt() 531 ValueParserInner::OsString => ValueParserInner::OsString, in clone() 551 value: std::ffi::OsString, in parse() argument 583 value: std::ffi::OsString, in parse() argument 626 value: std::ffi::OsString, in parse() argument 745 value: std::ffi::OsString, in parse() argument 778 type Value = std::ffi::OsString; [all …]
|
/external/rust/crates/protobuf-codegen/src/codegen/ |
D | mod.rs | 2 use std::ffi::OsString; 57 protoc_extra_args: Vec<OsString>, 192 pub fn protoc_extra_arg(&mut self, arg: impl Into<OsString>) -> &mut Self { in protoc_extra_arg()
|