Lines Matching refs:as_bytes

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