pub fn new<P>(kind: ErrorKind, path: P) -> Error
    where
        P: Into<PathBuf>,
    {
        Error {
            path: path.into(),
            kind,
            io: None,
        }
    }
/// Construct a new error with no source.
Construct a new error with no source.
Construct a new error with no source .
pub fn new<P>(kind: ErrorKind, path: P) -> Error
    where
        P: Into<PathBuf>,
    {
        Error {
            path: path.into(),
            kind,
            io: None,
        }
    }
pub fn new < P > ( kind : ErrorKind , path : P ) -> Error where P : Into < PathBuf > , { Error { path : path . into ( ) , kind , io : None , } }
Construct a new error with no source.
Construct a new error with no source .
kind
ErrorKind
path
P
kind
ErrorKind
path
P