Skip to main content

ItemExtentProvider

Trait ItemExtentProvider 

Source
pub trait ItemExtentProvider {
    // Required method
    fn extent(&self, index: usize) -> Pixels;
}

Required Methods§

Source

fn extent(&self, index: usize) -> Pixels

Return an item’s extent. The list snapshots each value once during construction; non-finite and negative values are treated as zero.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§