ListModelExt

Trait ListModelExt 

Source
pub trait ListModelExt: IsA<ListModel> + 'static {
    // Provided methods
    fn item_type(&self) -> Type { ... }
    fn n_items(&self) -> u32 { ... }
    fn item(&self, position: u32) -> Option<Object> { ... }
    fn items_changed(&self, position: u32, removed: u32, added: u32) { ... }
    fn connect_items_changed<F: Fn(&Self, u32, u32, u32) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn item_type(&self) -> Type

Source

fn n_items(&self) -> u32

Source

fn item(&self, position: u32) -> Option<Object>

Source

fn items_changed(&self, position: u32, removed: u32, added: u32)

Source

fn connect_items_changed<F: Fn(&Self, u32, u32, u32) + '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§