pub fn out_dir(&self, unit: &Unit) -> PathBuf {
        let out_dir = self.layout(unit.pkg, unit.kind);
        if unit.target.is_custom_build() {
            out_dir.build(unit.pkg)
        } else if unit.target.is_example() {
            out_dir.examples().to_path_buf()
        } else {
            out_dir.root().to_path_buf()
        }
    }
/// Returns the appropriate output directory for the specified package and
/// target.
Returns the appropriate output directory for the specified package and
target.
Returns the appropriate output directory for the specified package and target .
pub fn out_dir(&self, unit: &Unit) -> PathBuf {
        let out_dir = self.layout(unit.pkg, unit.kind);
        if unit.target.is_custom_build() {
            out_dir.build(unit.pkg)
        } else if unit.target.is_example() {
            out_dir.examples().to_path_buf()
        } else {
            out_dir.root().to_path_buf()
        }
    }
pub fn out_dir ( & self , unit : & Unit ) -> PathBuf { let out_dir = self . layout ( unit . pkg , unit . kind ) ; if unit . target . is_custom_build ( ) { out_dir . build ( unit . pkg ) } else if unit . target . is_example ( ) { out_dir . examples ( ) . to_path_buf ( ) } else { out_dir . root ( ) . to_path_buf ( ) } }
Returns the appropriate output directory for the specified package and
target.
Returns the appropriate output directory for the specified package and target .
&self
unit
&Unit
&self
unit
&Unit