pub struct CandidatePair {
pub kind: FeatureKind,
pub hash: FeatureHash,
pub a: FragmentRef,
pub b: FragmentRef,
}Expand description
An exact-hash candidate pair: two fragments that share one feature hash.
The pair is canonical: a < b by fragment reference, so the same two
fragments never appear in both orders.
Fields§
§kind: FeatureKindWhich feature family the shared hash came from.
hash: FeatureHashThe shared feature hash.
a: FragmentRefThe lower fragment.
b: FragmentRefThe higher fragment.
Trait Implementations§
Source§impl Clone for CandidatePair
impl Clone for CandidatePair
Source§fn clone(&self) -> CandidatePair
fn clone(&self) -> CandidatePair
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 moreSource§impl Debug for CandidatePair
impl Debug for CandidatePair
impl Eq for CandidatePair
Source§impl Ord for CandidatePair
impl Ord for CandidatePair
Source§fn cmp(&self, other: &CandidatePair) -> Ordering
fn cmp(&self, other: &CandidatePair) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CandidatePair
impl PartialEq for CandidatePair
Source§impl PartialOrd for CandidatePair
impl PartialOrd for CandidatePair
impl StructuralPartialEq for CandidatePair
Auto Trait Implementations§
impl Freeze for CandidatePair
impl RefUnwindSafe for CandidatePair
impl Send for CandidatePair
impl Sync for CandidatePair
impl Unpin for CandidatePair
impl UnsafeUnpin for CandidatePair
impl UnwindSafe for CandidatePair
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.