pub fn build(&self, arch: &str, os: &str) -> Option<&Build> {
        let filtered: Vec<&Build> = self.builds
            .iter()
            .filter(|b| b.arch == arch && b.os == os)
            .collect();

        if filtered.is_empty() {
            None
        }
        else {
            Some(filtered[0])
        }
    }
// Pull a specific build out of the product version builds.
Pull a specific build out of the product version builds.
Pull a specific build out of the product version builds .
pub fn build(&self, arch: &str, os: &str) -> Option<&Build> {
        let filtered: Vec<&Build> = self.builds
            .iter()
            .filter(|b| b.arch == arch && b.os == os)
            .collect();
        if filtered.is_empty() {
            None
        }
        else {
            Some(filtered[0])
        }
    }
pub fn build ( & self , arch : & str , os : & str ) -> Option < & Build > { let filtered : Vec < & Build > = self . builds . iter ( ) . filter ( | b | b . arch == arch && b . os == os ) . collect ( ) ; if filtered . is_empty ( ) { None } else { Some ( filtered [ 0 ] ) } }
Pull a specific build out of the product version builds.
Pull a specific build out of the product version builds .
&self
arch
&str
os
&str
&self
arch
&str
os
&str