[][src]Struct punda::display::image::DisplayImage

pub struct DisplayImage(pub [[bool; 5]; 5]);

A representation of an image to be displayed on the LED matrix.

The array is arranged so that it is an array of rows. When represented in source code as follows, each line of the array corresponds to a row of LEDs.

let image = [
    [false, true, false, true, false], // first row
    [false, false, false, false, false], // second row
    [true, false, false, false, true], // third row
    [false, true, true, true, false], // fourth row
    [false, false, false, false, false], // fifth row
]

Trait Implementations

impl Deref for DisplayImage[src]

type Target = [[bool; 5]; 5]

The resulting type after dereferencing.

impl DerefMut for DisplayImage[src]

impl Copy for DisplayImage[src]

impl From<Letter> for DisplayImage[src]

impl From<[[bool; 5]; 5]> for DisplayImage[src]

impl Clone for DisplayImage[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T