pub trait SorterImpl: SorterImplExt + ObjectImpl {
// Provided methods
fn compare(&self, item1: &Object, item2: &Object) -> Ordering { ... }
fn order(&self) -> SorterOrder { ... }
}
Provided Methods§
fn compare(&self, item1: &Object, item2: &Object) -> Ordering
Sourcefn order(&self) -> SorterOrder
fn order(&self) -> SorterOrder
Gets the order that @self conforms to.
See SorterOrder
for details
of the possible return values.
This function is intended to allow optimizations.
§Returns
The order
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.