pub fn sub_path<P: AsRef<Path>>(&self, path: P) -> Result<PathBuf> {
        if path.as_ref().is_absolute() {
            return Err(Error::InvalidArgument(format!(
                "cannot add absolute path '{}' to temporary directory path",
                path.as_ref().display()
            )));
        }
        Ok(self.path.as_path().join(path))
    }
/// A convenience function which adds the given relative path to this
/// temporary directory's absolute path.
A convenience function which adds the given relative path to this
temporary directory's absolute path.
A convenience function which adds the given relative path to this temporary directory ' s absolute path .
pub fn sub_path<P: AsRef<Path>>(&self, path: P) -> Result<PathBuf> {
        if path.as_ref().is_absolute() {
            return Err(Error::InvalidArgument(format!(
                "cannot add absolute path '{}' to temporary directory path",
                path.as_ref().display()
            )));
        }
        Ok(self.path.as_path().join(path))
    }
pub fn sub_path < P : AsRef < Path > > ( & self , path : P ) -> Result < PathBuf > { if path . as_ref ( ) . is_absolute ( ) { return Err ( Error :: InvalidArgument ( format ! ( " " path as_ref ( ) display ( ) ) ) ) ; } Ok ( self . path . as_path ( ) . join ( path ) ) }
A convenience function which adds the given relative path to this
temporary directory's absolute path.
A convenience function which adds the given relative path to this temporary directory ' s absolute path .
&self
path
P
&self
path
P