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§
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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".