Enum cargo_update::ops::ConfigOperation
source · pub enum ConfigOperation {
SetToolchain(String),
RemoveToolchain,
DefaultFeatures(bool),
AddFeature(String),
RemoveFeature(String),
SetDebugMode(bool),
SetTargetVersion(VersionReq),
RemoveTargetVersion,
}
Expand description
A single operation to be executed upon configuration of a package.
Variants
SetToolchain(String)
Set the toolchain to use to compile the package.
RemoveToolchain
Use the default toolchain to use to compile the package.
DefaultFeatures(bool)
Whether to compile the package with the default features.
AddFeature(String)
Compile the package with the specified feature.
RemoveFeature(String)
Remove the feature from the list of features to compile with.
SetDebugMode(bool)
Set debug mode being enabled to the specified value.
SetTargetVersion(VersionReq)
Constrain the installed to the specified one.
RemoveTargetVersion
Always install latest package version.
Trait Implementations
sourceimpl Clone for ConfigOperation
impl Clone for ConfigOperation
sourcefn clone(&self) -> ConfigOperation
fn clone(&self) -> ConfigOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConfigOperation
impl Debug for ConfigOperation
sourceimpl Hash for ConfigOperation
impl Hash for ConfigOperation
sourceimpl Ord for ConfigOperation
impl Ord for ConfigOperation
sourcefn cmp(&self, other: &ConfigOperation) -> Ordering
fn cmp(&self, other: &ConfigOperation) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ConfigOperation> for ConfigOperation
impl PartialEq<ConfigOperation> for ConfigOperation
sourcefn eq(&self, other: &ConfigOperation) -> bool
fn eq(&self, other: &ConfigOperation) -> bool
sourceimpl PartialOrd<ConfigOperation> for ConfigOperation
impl PartialOrd<ConfigOperation> for ConfigOperation
sourcefn partial_cmp(&self, other: &ConfigOperation) -> Option<Ordering>
fn partial_cmp(&self, other: &ConfigOperation) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ConfigOperation
impl StructuralEq for ConfigOperation
impl StructuralPartialEq for ConfigOperation
Auto Trait Implementations
impl RefUnwindSafe for ConfigOperation
impl Send for ConfigOperation
impl Sync for ConfigOperation
impl Unpin for ConfigOperation
impl UnwindSafe for ConfigOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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