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§

source

fn compare(&self, item1: &Object, item2: &Object) -> Ordering

source

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

Object Safety§

This trait is not object safe.

Implementors§