Enum cargo::core::resolver::ResolveBehavior
source · pub enum ResolveBehavior {
V1,
V2,
}
Expand description
Resolver behavior, used to opt-in to new behavior that is
backwards-incompatible via the resolver
field in the manifest.
Variants§
Implementations§
source§impl ResolveBehavior
impl ResolveBehavior
pub fn from_manifest(resolver: &str) -> CargoResult<ResolveBehavior>
pub fn to_manifest(&self) -> String
Trait Implementations§
source§impl Clone for ResolveBehavior
impl Clone for ResolveBehavior
source§fn clone(&self) -> ResolveBehavior
fn clone(&self) -> ResolveBehavior
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResolveBehavior
impl Debug for ResolveBehavior
source§impl Hash for ResolveBehavior
impl Hash for ResolveBehavior
source§impl PartialEq for ResolveBehavior
impl PartialEq for ResolveBehavior
source§fn eq(&self, other: &ResolveBehavior) -> bool
fn eq(&self, other: &ResolveBehavior) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ResolveBehavior
impl Eq for ResolveBehavior
impl StructuralPartialEq for ResolveBehavior
Auto Trait Implementations§
impl RefUnwindSafe for ResolveBehavior
impl Send for ResolveBehavior
impl Sync for ResolveBehavior
impl Unpin for ResolveBehavior
impl UnwindSafe for ResolveBehavior
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.