Enum cargo::util::command_prelude::CompileMode   [−][src]
The general “mode” for what to do.
This is used for two purposes. The commands themselves pass this in to
compile_ws to tell it the general execution strategy. This influences
the default targets selected. The other use is in the Unit struct
to indicate what is being done with a specific target.
Variants
A target being built for a test.
Building a target with rustc (lib or bin).
Building a target with rustc to emit rmeta metadata only. If
test is true, then it is also compiled with --test to check it like
a test.
Fields of Check
test: boolUsed to indicate benchmarks should be built. This is not used in
Unit, because it is essentially the same as Test (indicating
--test should be passed to rustc) and by using Test instead it
allows some de-duping of Units to occur.
A target that will be documented with rustdoc.
If deps is true, then it will also document all dependencies.
Fields of Doc
deps: boolA target that will be tested with rustdoc.
A marker for Units that represent the execution of a build.rs script.
Implementations
impl CompileMode[src]
pub fn is_check(self) -> bool[src]
Returns true if the unit is being checked.
pub fn is_doc(self) -> bool[src]
Returns true if this is generating documentation.
pub fn is_doc_test(self) -> bool[src]
Returns true if this a doc test.
pub fn is_any_test(self) -> bool[src]
Returns true if this is any type of test (test, benchmark, doc test, or
check test).
pub fn is_rustc_test(self) -> bool[src]
Returns true if this is something that passes --test to rustc.
pub fn is_run_custom_build(self) -> bool[src]
Returns true if this is the execution of a build.rs script.
pub fn all_modes() -> &'static [CompileMode][src]
List of all modes (currently used by cargo clean -p for computing
all possible outputs).
Trait Implementations
impl Clone for CompileMode[src]
fn clone(&self) -> CompileMode[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for CompileMode[src]
impl Debug for CompileMode[src]
impl Eq for CompileMode[src]
impl Hash for CompileMode[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for CompileMode[src]
fn cmp(&self, other: &CompileMode) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<CompileMode> for CompileMode[src]
fn eq(&self, other: &CompileMode) -> bool[src]
fn ne(&self, other: &CompileMode) -> bool[src]
impl PartialOrd<CompileMode> for CompileMode[src]
fn partial_cmp(&self, other: &CompileMode) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl Serialize for CompileMode[src]
impl StructuralEq for CompileMode[src]
impl StructuralPartialEq for CompileMode[src]
Auto Trait Implementations
impl RefUnwindSafe for CompileMode
impl Send for CompileMode
impl Sync for CompileMode
impl Unpin for CompileMode
impl UnwindSafe for CompileMode
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
    V: MultiLane<T>, [src]
V: MultiLane<T>,