pub enum IncompatibleStandards {
Allow,
Fallback,
}Expand description
The [resolver] incompatible-standards preference knob.
The value vocabulary is deliberately identical to Cargo’s
resolver.incompatible-rust-versions (allow / fallback), and
the semantics mirror it: standards are a version-selection
preference, never a hard constraint on solvability. See
docs/design/standard-compatibility/preference-mode.md.
Variants§
Allow
Standards have no influence on version selection - selection is a pure function of semver constraints, and lockfiles never move when standards change. Incompatibilities surface only through the post-resolution validation. The strict/deterministic mode.
Fallback
Prefer standard-compatible versions, falling back to
newest-first when no compatible candidate exists (never a
resolution failure Allow would not also produce). The
default.
Implementations§
Source§impl IncompatibleStandards
impl IncompatibleStandards
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The canonical spelling used in config, env vars, and messages.
Sourcepub fn parse(value: &str) -> Result<Self, UnknownIncompatibleStandards>
pub fn parse(value: &str) -> Result<Self, UnknownIncompatibleStandards>
Parse a config / env-var value. The accepted spellings are Cargo’s verbatim.
§Errors
Returns UnknownIncompatibleStandards for any other value.
Trait Implementations§
Source§impl Clone for IncompatibleStandards
impl Clone for IncompatibleStandards
Source§fn clone(&self) -> IncompatibleStandards
fn clone(&self) -> IncompatibleStandards
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for IncompatibleStandards
Source§impl Debug for IncompatibleStandards
impl Debug for IncompatibleStandards
Source§impl Default for IncompatibleStandards
impl Default for IncompatibleStandards
Source§fn default() -> IncompatibleStandards
fn default() -> IncompatibleStandards
Source§impl Display for IncompatibleStandards
impl Display for IncompatibleStandards
impl Eq for IncompatibleStandards
Source§impl Hash for IncompatibleStandards
impl Hash for IncompatibleStandards
Source§impl PartialEq for IncompatibleStandards
impl PartialEq for IncompatibleStandards
Source§fn eq(&self, other: &IncompatibleStandards) -> bool
fn eq(&self, other: &IncompatibleStandards) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IncompatibleStandards
Auto Trait Implementations§
impl Freeze for IncompatibleStandards
impl RefUnwindSafe for IncompatibleStandards
impl Send for IncompatibleStandards
impl Sync for IncompatibleStandards
impl Unpin for IncompatibleStandards
impl UnsafeUnpin for IncompatibleStandards
impl UnwindSafe for IncompatibleStandards
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.