Struct rolldown_common::EnaKey
source · pub struct EnaKey(_);
Trait Implementations§
source§impl PartialEq<EnaKey> for EnaKey
impl PartialEq<EnaKey> for EnaKey
source§impl UnifyKey for EnaKey
impl UnifyKey for EnaKey
type Value = ()
fn index(&self) -> u32
fn from_index(u: u32) -> Self
fn tag() -> &'static str
source§fn order_roots(
a: Self,
a_value: &Self::Value,
b: Self,
b_value: &Self::Value
) -> Option<(Self, Self)>
fn order_roots( a: Self, a_value: &Self::Value, b: Self, b_value: &Self::Value ) -> Option<(Self, Self)>
If true, then
self
should be preferred as root to other
.
Note that we assume a consistent partial ordering, so
returning true implies that other.prefer_as_root_to(self)
would return false. If there is no ordering between two keys
(i.e., a.prefer_as_root_to(b)
and b.prefer_as_root_to(a)
both return false) then the rank will be used to determine the
root in an optimal way. Read more