pub trait LedPixelShape {
// Required methods
fn size() -> Size;
fn pixel_index(point: Point) -> Option<usize>;
// Provided method
fn pixel_len() -> usize { ... }
}
Available on crate feature
embedded-graphics-core
only.Expand description
LED pixel shape
Required Methods§
sourcefn pixel_index(point: Point) -> Option<usize>
fn pixel_index(point: Point) -> Option<usize>
Convert from point
to the index.
Returns None
if it is out of the bounds.
Provided Methods§
Object Safety§
This trait is not object safe.