pub fn root(&self) -> &Path {
        let mut result = self;
        while let Some(parent) = &result.parent {
            result = parent.as_ref();
        }
        result
    }
/// Returns the first component of this path
Returns the first component of this path
Returns the first component of this path
pub fn root(&self) -> &Path {
        let mut result = self;
        while let Some(parent) = &result.parent {
            result = parent.as_ref();
        }
        result
    }
pub fn root ( & self ) -> & Path { let mut result = self ; while let Some ( parent ) = & result . parent { result = parent . as_ref ( ) ; } result }
Returns the first component of this path
Returns the first component of this path
&self
&self