pub enum MatchClass {
Satisfies,
NearMissPatch(u32),
NearMissMinor(u32),
Breaking,
Unknown,
}Expand description
Outcome of classifying a request against one declared constraint.
Variants§
Satisfies
The request satisfies / intersects the declared constraint.
NearMissPatch(u32)
Disjoint at patch level (after the 0.x role shift); distance in patches.
NearMissMinor(u32)
Disjoint at minor level (after the 0.x role shift); distance in minors.
Breaking
Disjoint at major level (or 0.x minor / 0.0.x patch): incompatible.
Unknown
The declared constraint failed to parse — unknowable.
Trait Implementations§
Source§impl Clone for MatchClass
impl Clone for MatchClass
Source§fn clone(&self) -> MatchClass
fn clone(&self) -> MatchClass
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 MatchClass
Source§impl Debug for MatchClass
impl Debug for MatchClass
impl Eq for MatchClass
Source§impl PartialEq for MatchClass
impl PartialEq for MatchClass
Source§fn eq(&self, other: &MatchClass) -> bool
fn eq(&self, other: &MatchClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MatchClass
Auto Trait Implementations§
impl Freeze for MatchClass
impl RefUnwindSafe for MatchClass
impl Send for MatchClass
impl Sync for MatchClass
impl Unpin for MatchClass
impl UnsafeUnpin for MatchClass
impl UnwindSafe for MatchClass
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
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
Compare self to
key and return true if they are equal.