pub trait ContextOrd<Ctx> {
// Provided method
fn stable_cmp_with_context(
_context: Ctx,
) -> impl FnMut(&Self, &Self) -> Ordering { ... }
}Provided Methods§
Sourcefn stable_cmp_with_context(
_context: Ctx,
) -> impl FnMut(&Self, &Self) -> Ordering
fn stable_cmp_with_context( _context: Ctx, ) -> impl FnMut(&Self, &Self) -> Ordering
The returned comparator must be stable.
E. g. compares DefPathHash instead of DefIndex
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".