pub fn parse_name(name: &str) -> Option<Box<Subcommand>> {
    let cmds: [fn(&str) -> Option<Box<Subcommand>>; 4] = [help::parse_cmd,
                                                          build::parse_cmd,
                                                          serve::parse_cmd,
                                                          test::parse_cmd];
    for parser in &cmds {
        let parsed = (*parser)(name);
        if parsed.is_some() { return parsed }
    }
    None
}
/// Create a Subcommand object based on its name.
Create a Subcommand object based on its name.
Create a Subcommand object based on its name .
pub fn parse_name(name: &str) -> Option<Box<Subcommand>> {
    let cmds: [fn(&str) -> Option<Box<Subcommand>>; 4] = [help::parse_cmd,
                                                          build::parse_cmd,
                                                          serve::parse_cmd,
                                                          test::parse_cmd];
    for parser in &cmds {
        let parsed = (*parser)(name);
        if parsed.is_some() { return parsed }
    }
    None
}
pub fn parse_name ( name : & str ) -> Option < Box < Subcommand > > { let cmds : [ fn ( & str ) -> Option < Box < Subcommand > > ; 4 ] = [ help :: parse_cmd , build :: parse_cmd , serve :: parse_cmd , test :: parse_cmd ] ; for parser in & cmds { let parsed = ( * parser ) ( name ) ; if parsed . is_some ( ) { return parsed } } None }
Create a Subcommand object based on its name.
Create a Subcommand object based on its name .
name
&str
name
&str