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
V1
V1 is the original resolver behavior.
V2
V2 adds the new feature resolver.
Implementations
sourceimpl ResolveBehavior
impl ResolveBehavior
pub fn from_manifest(resolver: &str) -> CargoResult<ResolveBehavior>
pub fn to_manifest(&self) -> Option<String>
Trait Implementations
sourceimpl Clone for ResolveBehavior
impl Clone for ResolveBehavior
sourcefn clone(&self) -> ResolveBehavior
fn clone(&self) -> ResolveBehavior
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 more
sourceimpl Debug for ResolveBehavior
impl Debug for ResolveBehavior
sourceimpl Hash for ResolveBehavior
impl Hash for ResolveBehavior
sourceimpl PartialEq<ResolveBehavior> for ResolveBehavior
impl PartialEq<ResolveBehavior> for ResolveBehavior
impl Copy for ResolveBehavior
impl Eq for ResolveBehavior
impl StructuralEq 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
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.