pub fn path(&self) -> Option<&Path> {
        match self.inner {
            ErrorInner::Io { path: None, .. } => None,
            ErrorInner::Io { path: Some(ref path), .. } => Some(path),
            ErrorInner::Loop { ref child, .. } => Some(child),
        }
    }
/// Returns the path associated with this error if one exists.
///
/// For example, if an error occurred while opening a directory handle,
/// the error will include the path passed to `std::fs::read_dir`.
Returns the path associated with this error if one exists.
For example, if an error occurred while opening a directory handle,
the error will include the path passed to `std::fs::read_dir`.
Returns the path associated with this error if one exists . For example if an error occurred while opening a directory handle the error will include the path passed to ` std :: fs :: read_dir ` .
pub fn path(&self) -> Option<&Path> {
        match self.inner {
            ErrorInner::Io { path: None, .. } => None,
            ErrorInner::Io { path: Some(ref path), .. } => Some(path),
            ErrorInner::Loop { ref child, .. } => Some(child),
        }
    }
pub fn path ( & self ) -> Option < & Path > { match self . inner { ErrorInner :: Io { path : None , .. } => None , ErrorInner :: Io { path : Some ( ref path ) , .. } => Some ( path ) , ErrorInner :: Loop { ref child , .. } => Some ( child ) , } }
Returns the path associated with this error if one exists.
Returns the path associated with this error if one exists .
&self
&self