pub enum ResolutionStrategy {
Highest,
Lowest,
LowestDirect,
}Expand description
Version-preference policy for a resolve, mirroring uv’s
--resolution. Maps onto bougie-composer-resolver’s
ResolutionStrategy in the dispatch layer.
Variants§
Highest
Prefer the newest compatible version of every package (the default).
Lowest
Prefer the oldest compatible version of every package, including
transitive dependencies (Composer’s --prefer-lowest).
LowestDirect
Prefer the oldest compatible version of the project’s direct requires, but the newest for everything they pull in transitively.
Trait Implementations§
Source§impl Clone for ResolutionStrategy
impl Clone for ResolutionStrategy
Source§fn clone(&self) -> ResolutionStrategy
fn clone(&self) -> ResolutionStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResolutionStrategy
Source§impl Debug for ResolutionStrategy
impl Debug for ResolutionStrategy
Source§impl Default for ResolutionStrategy
impl Default for ResolutionStrategy
Source§fn default() -> ResolutionStrategy
fn default() -> ResolutionStrategy
Returns the “default value” for a type. Read more
impl Eq for ResolutionStrategy
Source§impl PartialEq for ResolutionStrategy
impl PartialEq for ResolutionStrategy
Source§fn eq(&self, other: &ResolutionStrategy) -> bool
fn eq(&self, other: &ResolutionStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolutionStrategy
Source§impl ValueEnum for ResolutionStrategy
impl ValueEnum for ResolutionStrategy
Auto Trait Implementations§
impl Freeze for ResolutionStrategy
impl RefUnwindSafe for ResolutionStrategy
impl Send for ResolutionStrategy
impl Sync for ResolutionStrategy
impl Unpin for ResolutionStrategy
impl UnsafeUnpin for ResolutionStrategy
impl UnwindSafe for ResolutionStrategy
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
Mutably borrows from an owned value. Read more