Enum cargo::util::command_prelude::ProfileChecking
source · [−]pub enum ProfileChecking {
LegacyRustc,
LegacyTestOnly,
Custom,
}
Expand description
Determines whether or not to gate --profile
as unstable when resolving it.
Variants
LegacyRustc
cargo rustc
historically has allowed “test”, “bench”, and “check”. This
variant explicitly allows those.
LegacyTestOnly
cargo check
and cargo fix
historically has allowed “test”. This variant
explicitly allows that on stable.
Custom
All other commands, which allow any valid custom named profile.
Auto Trait Implementations
impl RefUnwindSafe for ProfileChecking
impl Send for ProfileChecking
impl Sync for ProfileChecking
impl Unpin for ProfileChecking
impl UnwindSafe for ProfileChecking
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more