pub fn checkout_build(&self, hash: &BuildHash) -> Res<Option<Binary>> {
        if let Some(path) = self.check_build(&hash) {
            Ok(Some(Binary {
                target: DirLock::acquire(&path)?,
            }))
        } else {
            Ok(None)
        }
    }
/// If the build directory exists, returns it. Otherwise, give up and return None
If the build directory exists, returns it. Otherwise, give up and return None
If the build directory exists returns it . Otherwise give up and return None
pub fn checkout_build(&self, hash: &BuildHash) -> Res<Option<Binary>> {
        if let Some(path) = self.check_build(&hash) {
            Ok(Some(Binary {
                target: DirLock::acquire(&path)?,
            }))
        } else {
            Ok(None)
        }
    }
pub fn checkout_build ( & self , hash : & BuildHash ) -> Res < Option < Binary > > { if let Some ( path ) = self . check_build ( & hash ) { Ok ( Some ( Binary { target : DirLock :: acquire ( & path ) ? , } ) ) } else { Ok ( None ) } }
If the build directory exists, returns it.
If the build directory exists returns it .
&self
hash
&BuildHash