Searched refs:to_file_path (Results 1 – 2 of 2) sorted by relevance
74 assert_eq!(url.to_file_path(), Ok(PathBuf::from($path)));106 assert_eq!(url.to_file_path(), Ok(PathBuf::from(os_str))); in new_path_bad_utf8()118 .to_file_path() in new_path_windows_fun()127 assert_eq!(url.to_file_path(), Ok(PathBuf::from(r"C:\foo\bar"))); in new_path_windows_fun()738 let path = url.to_file_path().unwrap(); in test_windows_unc_path()843 let path = u.to_file_path().unwrap(); in test_url_from_file_path()856 let path = u.to_file_path().unwrap();
2457 pub fn to_file_path(&self) -> Result<PathBuf, ()> { in to_file_path() method