Home
last modified time | relevance | path

Searched refs:from_raw_bytes (Results 1 – 4 of 4) sorted by relevance

/third_party/rust/crates/os_str_bytes/src/
Dlib.rs311 fn from_raw_bytes<'a, S>( in from_raw_bytes() function
400 fn from_raw_bytes<'a, S>(string: S) -> Result<Cow<'a, Self>>
432 expect_encoded!(from_raw_bytes(string)) in assert_from_raw_bytes()
436 fn from_raw_bytes<'a, S>(string: S) -> Result<Cow<'a, Self>> in from_raw_bytes() method
440 from_raw_bytes(string).map_err(EncodingError) in from_raw_bytes()
459 fn from_raw_bytes<'a, S>(string: S) -> Result<Cow<'a, Self>> in from_raw_bytes() method
463 OsStr::from_raw_bytes(string).map(cow_os_str_into_path) in from_raw_bytes()
Draw_str.rs231 pub fn from_raw_bytes(string: &[u8]) -> Result<&Self> {
/third_party/rust/crates/os_str_bytes/tests/
Dcommon.rs41 T::from_raw_bytes(string).as_deref().map(AsRef::as_ref),
46 let os_string = OsStr::from_raw_bytes(string);
Drandom.rs42 if let Ok(os_string) = OsStr::from_raw_bytes(&string) { in test_lossless()