Searched refs:from_directory_path (Results 1 – 2 of 2) sorted by relevance
134 assert_eq!(Url::from_directory_path(Path::new("relative")), Err(())); in new_directory_paths()135 assert_eq!(Url::from_directory_path(Path::new("../relative")), Err(())); in new_directory_paths()137 let url = Url::from_directory_path(Path::new("/foo/bar")).unwrap(); in new_directory_paths()142 assert_eq!(Url::from_directory_path(Path::new("relative")), Err(())); in new_directory_paths()143 assert_eq!(Url::from_directory_path(Path::new(r"..\relative")), Err(())); in new_directory_paths()145 Url::from_directory_path(Path::new(r"\drive-relative")), in new_directory_paths()148 assert_eq!(Url::from_directory_path(Path::new(r"\\ucn\")), Err(())); in new_directory_paths()150 let url = Url::from_directory_path(Path::new(r"C:\foo\bar")).unwrap(); in new_directory_paths()
2340 pub fn from_directory_path<P: AsRef<Path>>(path: P) -> Result<Url, ()> { in from_directory_path() method