Get the parent directory of the path.
(&self)
| 102 | |
| 103 | /// Get the parent directory of the path. |
| 104 | pub fn parent(&self) -> Option<&str> { |
| 105 | Path::new(&self.path).parent()?.to_str() |
| 106 | } |
| 107 | |
| 108 | /// Check if this refers to the root of a file (line 0 or 1). |
| 109 | #[inline] |
no outgoing calls