Skip to main content

ListSource

Trait ListSource 

Source
pub trait ListSource {
    type C: PixelColor;

    // Required methods
    fn total_count(&self) -> u8;
    fn height_for_index(&self, index: u8) -> i32;
    fn draw<D: DrawTarget<Color = Self::C>>(
        &self,
        index: u8,
        is_active: bool,
        display: &mut D,
        origin: Point,
    ) -> Result<Point, D::Error>;
}

Required Associated Types§

Required Methods§

Source

fn total_count(&self) -> u8

Source

fn height_for_index(&self, index: u8) -> i32

Source

fn draw<D: DrawTarget<Color = Self::C>>( &self, index: u8, is_active: bool, display: &mut D, origin: Point, ) -> Result<Point, D::Error>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§