[go: up one dir, main page]

SectionModelExt

Trait SectionModelExt 

Source
pub trait SectionModelExt: IsA<SectionModel> + 'static {
    // Provided methods
    fn section(&self, position: u32) -> (u32, u32) { ... }
    fn sections_changed(&self, position: u32, n_items: u32) { ... }
    fn connect_sections_changed<F: Fn(&Self, u32, u32) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Available on crate feature v4_12 only.

Provided Methods§

Source

fn section(&self, position: u32) -> (u32, u32)

Source

fn sections_changed(&self, position: u32, n_items: u32)

Source

fn connect_sections_changed<F: Fn(&Self, 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§