Searched refs:RawOsStr (Results 1 - 12 of 12) sorted by relevance
/third_party/rust/crates/os_str_bytes/tests/ |
H A D | raw_integration.rs | 3 use os_str_bytes::RawOsStr; 12 let suffix = RawOsStr::assert_from_raw_bytes(suffix); in test_ends_with() 42 RawOsStr::from_str("").ends_with_os(RawOsStr::from_str(suffix)), in test_empty_ends_with() 55 let prefix = RawOsStr::assert_from_raw_bytes(prefix); in test_starts_with() 85 RawOsStr::from_str("").starts_with_os(RawOsStr::from_str(prefix)), in test_empty_starts_with() 103 let _ = RawOsStr::from_str("").split(""); in test_split_empty_by_empty()
|
H A D | raw_debug.rs | 3 use os_str_bytes::RawOsStr; 8 fn test(result: &str, string: &RawOsStr) { in test() 9 assert_eq!(format!("RawOsStr({})", result), format!("{:?}", string)); in test() 18 test("\"\"", RawOsStr::from_str("")); in test_empty() 33 test("\"foo\\\"bar\"", RawOsStr::from_str("foo\"bar")); in test_quote()
|
H A D | raw_random.rs | 3 use os_str_bytes::RawOsStr; 16 RawOsStr::$method($(&$arg),+), in test_complex() 25 let prefix = RawOsStr::new(&string).into_owned(); in test_complex()
|
H A D | raw_common.rs | 6 use os_str_bytes::RawOsStr; 15 pub(crate) const RAW_WTF8_STRING: &RawOsStr =
|
/third_party/rust/crates/clap/clap_lex/src/ |
H A D | lib.rs | 29 //! fn parse(s: Option<&clap_lex::RawOsStr>) -> Result<Self, BoxedError> { 117 pub use os_str_bytes::RawOsStr; 278 inner: std::borrow::Cow<'s, RawOsStr>, 285 let inner = RawOsStr::new(inner); 312 pub fn to_long(&self) -> Option<(Result<&str, &RawOsStr>, Option<&RawOsStr>)> { in to_long() 326 let value = value.map(RawOsStr::from_str); in to_long() 378 pub fn to_value_os(&self) -> &RawOsStr { in to_value_os() 385 pub fn to_value(&self) -> Result<&str, &RawOsStr> { in to_value() 400 inner: &'s RawOsStr, in display() [all...] |
/third_party/rust/crates/os_str_bytes/src/ |
H A D | raw_str.rs | 66 unsafe impl TransmuteBox for RawOsStr {} 106 pub struct RawOsStr([u8]); structure names 108 impl RawOsStr { impls 128 /// use os_str_bytes::RawOsStr; 131 /// println!("{:?}", RawOsStr::new(&os_string)); 146 /// This method is much more efficient than [`RawOsStr::new`], since the 152 /// use os_str_bytes::RawOsStr; 155 /// let raw = RawOsStr::from_str(string); 180 /// use os_str_bytes::RawOsStr; 183 /// let raw = RawOsStr [all...] |
H A D | iter.rs | 13 use super::RawOsStr; 19 /// The iterator returned by [`RawOsStr::split`]. 24 string: Option<&'a RawOsStr>, 33 pub(super) fn new(string: &'a RawOsStr, pat: P) -> Self { 101 type Item = &'a RawOsStr;
|
H A D | lib.rs | 12 //! In most cases, [`RawOsStr`] and [`RawOsString`] should be used. 73 //! For more information, see [`RawOsStr`][memchr complexity]. 79 //! - [`RawOsStr`] 90 //! - [`RawOsStr::from_raw_bytes`] 98 //! Provides implementations of [`print_bytes::ToBytes`] for [`RawOsStr`] and 102 //! Provides implementations of [`uniquote::Quote`] for [`RawOsStr`] and 134 //! use os_str_bytes::RawOsStr; 148 //! if !RawOsStr::new(&file).starts_with('-') { 162 //! [memchr complexity]: RawOsStr#complexity 266 pub use raw_str::RawOsStr; [all...] |
/third_party/rust/crates/clap/clap_lex/tests/ |
H A D | parsed.rs | 52 assert_eq!(value, Some(clap_lex::RawOsStr::from_str(""))); in to_long_with_empty_value() 66 assert_eq!(value, Some(clap_lex::RawOsStr::from_str("hello"))); in to_long_with_value()
|
/third_party/rust/crates/clap/src/parser/ |
H A D | parser.rs | 8 use clap_lex::RawOsStr; 551 arg: Result<&str, &RawOsStr>, in possible_subcommand() 726 long_arg: Result<&str, &RawOsStr>, in parse_long_arg() 727 long_value: Option<&RawOsStr>, in parse_long_arg() 994 attached_value: Option<&RawOsStr>, in parse_opt_value() 1057 fn check_terminator(&self, arg: &Arg, val: &RawOsStr) -> Option<ParseResult> { in check_terminator() 1062 .map(|s| RawOsStr::from_str(s.as_str())) in check_terminator()
|
/third_party/rust/crates/clap/src/builder/ |
H A D | debug_asserts.rs | 3 use clap_lex::RawOsStr; 853 let default_os = RawOsStr::new(default_os); in assert_defaults()
|
/third_party/rust/crates/clap/clap_complete/src/ |
H A D | dynamic.rs | 431 value: Result<&str, &clap_lex::RawOsStr>, in complete_arg_value() 447 Ok(value) => clap_lex::RawOsStr::from_str(value), in complete_arg_value() 488 value_os: &clap_lex::RawOsStr, in complete_path() 503 .unwrap_or((clap_lex::RawOsStr::from_str(""), value_os)); in complete_path()
|
Completed in 8 milliseconds