pub enum UnionBy {
Rank,
Size,
Uses,
Sum,
}Expand description
Survivor policy for class merges (--union-by). Rank leaves the choice
to the union-find’s rank heuristic (the historical default). The directed
criteria absorb the cheap side, reading the verified per-class counters:
Size compares member counts (bounds the semi-naive touched-log pushes to
amortized O(n log n) — a node is absorbed at most log n times), Uses
compares use-list lengths (bounds recanonization work the same way), and
Sum adds the two, bounding their aggregate movement. Survivor identity is
intended to be semantically irrelevant because class payloads are
merge-folded (design doc §9a), and finite differential tests compare the
policies. This is not an end-to-end equivalence theorem; budget-, goal-, or
order-sensitive runs may follow different operational paths.
Variants§
Trait Implementations§
impl Copy for UnionBy
impl Eq for UnionBy
impl StructuralPartialEq for UnionBy
Auto Trait Implementations§
impl Freeze for UnionBy
impl RefUnwindSafe for UnionBy
impl Send for UnionBy
impl Sync for UnionBy
impl Unpin for UnionBy
impl UnsafeUnpin for UnionBy
impl UnwindSafe for UnionBy
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.