embedded-graphics 0.6.0-alpha.2

Embedded graphics library for small hardware displays
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! `Drawable` trait and helpers

use crate::geometry::Point;
use crate::pixelcolor::PixelColor;

/// A single pixel
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct Pixel<C: PixelColor>(pub Point, pub C);

/// Marks an object as "drawable". Must be implemented for all graphics objects
pub trait Drawable {}