Trait gtk4::subclass::sorter::SorterImpl
source · 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