Home
last modified time | relevance | path

Searched refs:OsString (Results 1 – 25 of 49) sorted by relevance

12

/external/rust/crates/bstr/src/
Dext_vec.rs5 use std::ffi::{OsStr, OsString};
176 fn from_os_string(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string() argument
179 fn imp(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string() argument
187 fn imp(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string() argument
491 fn into_os_string(self) -> Result<OsString, Vec<u8>> in into_os_string() argument
497 fn imp(v: Vec<u8>) -> Result<OsString, Vec<u8>> { in into_os_string() argument
500 Ok(OsString::from_vec(v)) in into_os_string()
505 fn imp(v: Vec<u8>) -> Result<OsString, Vec<u8>> { in into_os_string() argument
507 Ok(s) => Ok(OsString::from(s)), in into_os_string()
537 fn into_os_string_lossy(self) -> OsString in into_os_string_lossy()
[all …]
/external/rust/crates/nix/test/sys/
Dtest_inotify.rs5 use std::ffi::OsString;
22 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()
Dtest_sockopt.rs42 use std::ffi::OsString; in test_tcp_congestion()
49 …setsockopt(fd, sockopt::TcpCongestion, &OsString::from("tcp_congestion_does_not_exist")).unwrap_er… in test_tcp_congestion()
/external/rust/crates/clap/src/args/
Darg_matches.rs4 use std::ffi::{OsStr, OsString};
216 fn to_str_slice(o: &OsString) -> &str { in values_of()
219 let to_str_slice: fn(&OsString) -> &str = to_str_slice; // coerce to fn pointer in values_of()
295 fn to_str_slice(o: &OsString) -> &OsStr { in values_of_os()
298 let to_str_slice: fn(&'a OsString) -> &'a OsStr = to_str_slice; // coerce to fn pointer in values_of_os()
801 iter: Map<Iter<'a, OsString>, fn(&'a OsString) -> &'a str>,
826 static EMPTY: [OsString; 0] = []; in default()
828 fn to_str_slice(_: &OsString) -> &str { in default()
860 iter: Map<Iter<'a, OsString>, fn(&'a OsString) -> &'a OsStr>,
885 static EMPTY: [OsString; 0] = []; in default()
[all …]
Dany_arg.rs2 use std::ffi::{OsStr, OsString};
27 fn validator_os(&self) -> Option<&Rc<Fn(&OsStr) -> Result<(), OsString>>>; in validator_os() argument
37 fn env<'s>(&'s self) -> Option<(&'n OsStr, Option<&'s OsString>)>; in env() argument
92 fn validator_os(&self) -> Option<&Rc<Fn(&OsStr) -> Result<(), OsString>>> { in validator_os() argument
122 fn env<'s>(&'s self) -> Option<(&'n OsStr, Option<&'s OsString>)> { in env() argument
Dmatched_arg.rs2 use std::ffi::OsString;
12 pub vals: Vec<OsString>,
/external/rust/crates/clap/src/args/arg_builder/
Dvalued.rs1 use std::ffi::{OsStr, OsString};
20 pub validator_os: Option<Rc<Fn(&OsStr) -> Result<(), OsString>>>,
24 pub env: Option<(&'a OsStr, Option<OsString>)>,
Dflag.rs3 use std::ffi::{OsStr, OsString};
106 fn validator_os(&self) -> Option<&Rc<Fn(&OsStr) -> StdResult<(), OsString>>> { in validator_os() argument
136 fn env<'s>(&'s self) -> Option<(&'n OsStr, Option<&'s OsString>)> { in env() argument
/external/rust/crates/structopt/tests/ui/
Dexternal_subcommand_wrong_type.stderr5 | ^^^^^^^ expected struct `CString`, found struct `OsString`
8 found struct `Vec<OsString>`
/external/rust/crates/clap/src/
Dosstringext.rs55 use std::ffi::OsString; in test_windows_osstr_starts_with()
58 fn from_ascii(ascii: &[u8]) -> OsString { in test_windows_osstr_starts_with() argument
60 OsString::from_wide(&u16_vec) in test_windows_osstr_starts_with()
81 OsString::from_wide(&['a' as u16, 'b' as u16, 'c' as u16, surrogate_char]); in test_windows_osstr_starts_with()
Dlib.rs601 T: Into<OsString> + Clone, in parse_from()
615 T: Into<OsString> + Clone, in try_parse_from()
/external/rust/crates/structopt/src/
Dlib.rs1063 use std::ffi::OsString;
1114 I::Item: Into<OsString> + Clone, in from_iter()
1131 I::Item: Into<OsString> + Clone, in from_iter_safe()
/external/rust/crates/csv/examples/
Dtutorial-write-02.rs3 use std::ffi::OsString;
33 fn get_first_arg() -> Result<OsString, Box<dyn Error>> { in get_first_arg()
Dtutorial-read-01.rs3 use std::ffi::OsString;
20 fn get_first_arg() -> Result<OsString, Box<dyn Error>> { in get_first_arg()
/external/rust/cxx/gen/cmd/src/
Dapp.rs9 use std::ffi::{OsStr, OsString};
104 fn validate_utf8(arg: &OsStr) -> Result<(), OsString> { in validate_utf8() argument
108 Err(OsString::from("invalid utf-8 sequence")) in validate_utf8()
/external/rust/crates/rustversion/build/
Dbuild.rs4 use std::ffi::OsString;
10 let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc")); in main()
/external/rust/crates/libloading/src/
Dlib.rs46 use std::ffi::{OsStr, OsString};
361 pub fn library_filename<S: AsRef<OsStr>>(name: S) -> OsString { in library_filename() argument
363 let mut string = OsString::with_capacity(name.len() + DLL_PREFIX.len() + DLL_SUFFIX.len()); in library_filename()
/external/rust/crates/nix/src/sys/socket/
Dsockopt.rs12 use std::ffi::{OsStr, OsString};
167 (Both, $name:ident, $level:path, $flag:path, OsString<$array:ty>) => {
168 sockopt_impl!(Both, $name, $level, $flag, OsString, GetOsString<$array>, SetOsString);
268 sockopt_impl!(Both, BindToDevice, libc::SOL_SOCKET, libc::SO_BINDTODEVICE, OsString<[u8; libc::IFNA…
283 sockopt_impl!(Both, TcpCongestion, libc::IPPROTO_TCP, libc::TCP_CONGESTION, OsString<[u8; TCP_CA_NA…
598 unsafe impl<T: AsMut<[u8]>> Get<OsString> for GetOsString<T> {
614 unsafe fn assume_init(self) -> OsString { in assume_init() argument
626 unsafe impl<'a> Set<'a, OsString> for SetOsString<'a> {
627 fn new(val: &'a OsString) -> SetOsString { in new()
/external/rust/cxx/gen/build/src/
Derror.rs4 use std::ffi::OsString;
12 NoEnv(OsString),
Ddeps.rs3 use std::ffi::OsString;
9 pub links: Option<OsString>,
/external/rust/crates/tokio/src/fs/
Dread_dir.rs3 use std::ffi::OsString;
198 pub fn file_name(&self) -> OsString { in file_name() argument
/external/rust/crates/nix/src/
Dfcntl.rs3 use std::ffi::OsString;
209 fn wrap_readlink_result(mut v: Vec<u8>, len: ssize_t) -> Result<OsString> { in wrap_readlink_result() argument
212 Ok(OsString::from_vec(v.to_vec())) in wrap_readlink_result()
240 fn inner_readlink<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P) -> Result<OsString> { in inner_readlink() argument
282 pub fn readlink<P: ?Sized + NixPath>(path: &P) -> Result<OsString> { in readlink() argument
287 pub fn readlinkat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P) -> Result<OsString> { in readlinkat() argument
/external/rust/crates/clap/src/app/
Dmod.rs10 use std::ffi::{OsStr, OsString};
1393 pub fn gen_completions<T: Into<OsString>, S: Into<String>>( in gen_completions() argument
1517 T: Into<OsString> + Clone, in get_matches_from()
1574 T: Into<OsString> + Clone, in get_matches_from_safe()
1603 T: Into<OsString> + Clone, in get_matches_from_safe_borrow()
1847 fn validator_os(&self) -> Option<&Rc<Fn(&OsStr) -> StdResult<(), OsString>>> { in validator_os() argument
1877 fn env<'s>(&'s self) -> Option<(&'n OsStr, Option<&'s OsString>)> { in env() argument
/external/rust/crates/which/src/
Dfinder.rs9 use std::ffi::OsString;
115 env::var_os("PATHEXT").unwrap_or(OsString::from(env::consts::EXE_EXTENSION)); in append_extension()
/external/rust/crates/nix/src/sys/
Dinotify.rs30 use std::ffi::{OsString,OsStr,CStr};
112 pub name: Option<OsString>

12