pub fn from_raw_arguments(
        lib_only: bool,
        bins: Vec<String>,
        all_bins: bool,
        tsts: Vec<String>,
        all_tsts: bool,
        exms: Vec<String>,
        all_exms: bool,
        bens: Vec<String>,
        all_bens: bool,
        all_targets: bool,
    ) -> CompileFilter {
        let rule_lib = if lib_only {
            LibRule::True
        } else {
            LibRule::False
        };
        let rule_bins = FilterRule::new(bins, all_bins);
        let rule_tsts = FilterRule::new(tsts, all_tsts);
        let rule_exms = FilterRule::new(exms, all_exms);
        let rule_bens = FilterRule::new(bens, all_bens);

        if all_targets {
            CompileFilter::Only {
                all_targets: true,
                lib: LibRule::Default,
                bins: FilterRule::All,
                examples: FilterRule::All,
                benches: FilterRule::All,
                tests: FilterRule::All,
            }
        } else {
            CompileFilter::new(rule_lib, rule_bins, rule_tsts, rule_exms, rule_bens)
        }
    }
/// Construct a CompileFilter from raw command line arguments.
Construct a CompileFilter from raw command line arguments.
Construct a CompileFilter from raw command line arguments .
pub fn from_raw_arguments(
        lib_only: bool,
        bins: Vec<String>,
        all_bins: bool,
        tsts: Vec<String>,
        all_tsts: bool,
        exms: Vec<String>,
        all_exms: bool,
        bens: Vec<String>,
        all_bens: bool,
        all_targets: bool,
    ) -> CompileFilter {
        let rule_lib = if lib_only {
            LibRule::True
        } else {
            LibRule::False
        };
        let rule_bins = FilterRule::new(bins, all_bins);
        let rule_tsts = FilterRule::new(tsts, all_tsts);
        let rule_exms = FilterRule::new(exms, all_exms);
        let rule_bens = FilterRule::new(bens, all_bens);
        if all_targets {
            CompileFilter::Only {
                all_targets: true,
                lib: LibRule::Default,
                bins: FilterRule::All,
                examples: FilterRule::All,
                benches: FilterRule::All,
                tests: FilterRule::All,
            }
        } else {
            CompileFilter::new(rule_lib, rule_bins, rule_tsts, rule_exms, rule_bens)
        }
    }
pub fn from_raw_arguments ( lib_only : bool , bins : Vec < String > , all_bins : bool , tsts : Vec < String > , all_tsts : bool , exms : Vec < String > , all_exms : bool , bens : Vec < String > , all_bens : bool , all_targets : bool , ) -> CompileFilter { let rule_lib = if lib_only { LibRule :: True } else { LibRule :: False } ; let rule_bins = FilterRule :: new ( bins , all_bins ) ; let rule_tsts = FilterRule :: new ( tsts , all_tsts ) ; let rule_exms = FilterRule :: new ( exms , all_exms ) ; let rule_bens = FilterRule :: new ( bens , all_bens ) ; if all_targets { CompileFilter :: Only { all_targets : true , lib : LibRule :: Default , bins : FilterRule :: All , examples : FilterRule :: All , benches : FilterRule :: All , tests : FilterRule :: All , } } else { CompileFilter :: new ( rule_lib , rule_bins , rule_tsts , rule_exms , rule_bens ) } }
Construct a CompileFilter from raw command line arguments.
Construct a CompileFilter from raw command line arguments .
lib_only
bool
bins
Vec<String>
all_bins
bool
tsts
Vec<String>
all_tsts
bool
exms
Vec<String>
all_exms
bool
bens
Vec<String>
all_bens
bool
all_targets
bool
lib_only
bool
bins
Vec<String>
all_bins
bool
tsts
Vec<String>
all_tsts
bool
exms
Vec<String>
all_exms
bool
bens
Vec<String>
all_bens
bool
all_targets
bool