Home
last modified time | relevance | path

Searched refs:from_raw_bytes (Results 1 - 3 of 3) sorted by relevance

/third_party/rust/crates/os_str_bytes/src/
H A Dlib.rs88 //! - [`OsStrBytes::from_raw_bytes`]
90 //! - [`RawOsStr::from_raw_bytes`]
311 fn from_raw_bytes<'a, S>( in from_raw_bytes() functions
390 /// assert_eq!(os_string, OsStr::from_raw_bytes(os_bytes).unwrap()); in assert_from_raw_bytes()
400 fn from_raw_bytes<'a, S>(string: S) -> Result<Cow<'a, Self>> in assert_from_raw_bytes() functions
432 expect_encoded!(from_raw_bytes(string)) in to_raw_bytes()
436 fn from_raw_bytes<'a, S>(string: S) -> Result<Cow<'a, Self>> in to_raw_bytes() functions
440 from_raw_bytes(string).map_err(EncodingError) in to_raw_bytes()
459 fn from_raw_bytes<'a, S>(string: S) -> Result<Cow<'a, Self>> in from_raw_bytes() functions
463 OsStr::from_raw_bytes(strin in from_raw_bytes()
[all...]
/third_party/rust/crates/os_str_bytes/tests/
H A Drandom.rs42 if let Ok(os_string) = OsStr::from_raw_bytes(&string) { in test_lossless()
H A Dcommon.rs41 T::from_raw_bytes(string).as_deref().map(AsRef::as_ref), in test_from_bytes()
46 let os_string = OsStr::from_raw_bytes(string);

Completed in 2 milliseconds