pub fn insert(&mut self, name: &str, detail: ArtifactDetail, release: bool, example: bool) {
        let name = name.to_string();
        match (release, example) {
            (true, true) => self.artifacts.release.examples.insert(name, detail),
            (true, false) => self.artifacts.release.bin.insert(name, detail),
            (false, true) => self.artifacts.debug.examples.insert(name, detail),
            (false, false) => self.artifacts.debug.bin.insert(name, detail),
        };
    }
/// Insert an artifact with a name into the metadata.
Insert an artifact with a name into the metadata.
Insert an artifact with a name into the metadata .
pub fn insert(&mut self, name: &str, detail: ArtifactDetail, release: bool, example: bool) {
        let name = name.to_string();
        match (release, example) {
            (true, true) => self.artifacts.release.examples.insert(name, detail),
            (true, false) => self.artifacts.release.bin.insert(name, detail),
            (false, true) => self.artifacts.debug.examples.insert(name, detail),
            (false, false) => self.artifacts.debug.bin.insert(name, detail),
        };
    }
pub fn insert ( & mut self , name : & str , detail : ArtifactDetail , release : bool , example : bool ) { let name = name . to_string ( ) ; match ( release , example ) { ( true , true ) => self . artifacts . release . examples . insert ( name , detail ) , ( true , false ) => self . artifacts . release . bin . insert ( name , detail ) , ( false , true ) => self . artifacts . debug . examples . insert ( name , detail ) , ( false , false ) => self . artifacts . debug . bin . insert ( name , detail ) , } ; }
Insert an artifact with a name into the metadata.
Insert an artifact with a name into the metadata .
&mut self
name
&str
detail
ArtifactDetail
release
bool
example
bool
&mut self
name
&str
detail
ArtifactDetail
release
bool
example
bool