Lines Matching refs:as_bytes
126 with_c_str(self.as_bytes(), f) in into_with_c_str()
162 with_c_str(self.as_bytes(), f) in into_with_c_str()
219 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str()
229 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in into_c_str()
239 with_c_str(self.as_bytes(), f) in into_with_c_str()
258 CString::new(OsString::as_os_str(self).as_bytes()) in as_cow_c_str()
277 with_c_str(self.as_bytes(), f) in into_with_c_str()
296 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str()
335 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str()
345 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in into_c_str()
355 with_c_str(self.as_os_str().as_bytes(), f) in into_with_c_str()
377 CString::new(PathBuf::as_path(self).as_os_str().as_bytes()) in as_cow_c_str()
396 with_c_str(self.as_os_str().as_bytes(), f) in into_with_c_str()
415 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str()
582 with_c_str(self.as_bytes(), f) in into_with_c_str()
601 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str()
613 Cow::Borrowed(os) => CString::new(os.as_bytes()), in into_c_str()
625 with_c_str(self.as_bytes(), f) in into_with_c_str()
679 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in as_cow_c_str()
689 CString::new(self.as_os_str().as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in into_c_str()
699 with_c_str(self.as_os_str().as_bytes(), f) in into_with_c_str()
718 CString::new(self.as_path().as_os_str().as_bytes()) in as_cow_c_str()
729 CString::new(self.as_path().as_os_str().as_bytes()) in into_c_str()
740 with_c_str(self.as_path().as_os_str().as_bytes(), f) in into_with_c_str()
759 CString::new(self.as_path().as_os_str().as_bytes()) in as_cow_c_str()
770 CString::new(self.as_path().as_os_str().as_bytes()) in into_c_str()
781 with_c_str(self.as_path().as_os_str().as_bytes(), f) in into_with_c_str()