[go: up one dir, main page]

SorterExt

Trait SorterExt 

Source
pub trait SorterExt: IsA<Sorter> + 'static {
    // Provided methods
    fn changed(&self, change: SorterChange) { ... }
    fn compare(
        &self,
        item1: &impl IsA<Object>,
        item2: &impl IsA<Object>,
    ) -> Ordering { ... }
    fn order(&self) -> SorterOrder { ... }
    fn connect_changed<F: Fn(&Self, SorterChange) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn changed(&self, change: SorterChange)

Source

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

Source

fn order(&self) -> SorterOrder

Source

fn connect_changed<F: Fn(&Self, SorterChange) + 'static>( &self, f: F, ) -> SignalHandlerId

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.

Implementors§

Source§

impl<O: IsA<Sorter>> SorterExt for O