Returns true if the Path is absolute, i.e., if it is independent of the current directory.
(&self)
| 348 | /// Returns true if the Path is absolute, i.e., if it is |
| 349 | /// independent of the current directory. |
| 350 | pub fn is_absolute(&self) -> bool { |
| 351 | self.has_root() |
| 352 | } |
| 353 | |
| 354 | /// Returns true if the Path is relative, i.e., not absolute. |
| 355 | pub fn is_relative(&self) -> bool { |
no test coverage detected