[][src]Enum cargo::ops::CompileFilter

pub enum CompileFilter {
    Default {
        required_features_filterable: bool,
    },
    Only {
        all_targets: bool,
        lib: bool,
        bins: FilterRule,
        examples: FilterRule,
        tests: FilterRule,
        benches: FilterRule,
    },
}

Variants

Default

Fields of Default

required_features_filterable: bool

Flag whether targets can be safely skipped when required-features are not satisfied.

Only

Fields of Only

all_targets: boollib: boolbins: FilterRuleexamples: FilterRuletests: FilterRulebenches: FilterRule

Methods

impl CompileFilter[src]

pub fn new(
    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
[src]

pub fn need_dev_deps(&self, mode: CompileMode) -> bool[src]

pub fn target_run(&self, target: &Target) -> bool[src]

pub fn is_specific(&self) -> bool[src]

Trait Implementations

impl Debug for CompileFilter[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self