[][src]Struct rmicrobit::display::MicrobitFrame

pub struct MicrobitFrame(_);

A 'Compiled' representation of a 5×5 image to be displayed.

Use the .set() method to store an image (something implementing Render) in the frame.

Note you'll have to use rmicrobit::display::Frame (or use rmicrobit::prelude::*) to make set() available.

Methods

impl MicrobitFrame[src]

pub const fn const_default() -> MicrobitFrame[src]

Returns a new frame, initially blank.

Trait Implementations

impl Debug for MicrobitFrame[src]

impl Copy for MicrobitFrame[src]

impl Clone for MicrobitFrame[src]

impl Default for MicrobitFrame[src]

fn default() -> MicrobitFrame[src]

Returns a new frame, initially blank.

impl Frame for MicrobitFrame[src]

type Mtx = MicrobitMatrix

The Matrix used to convert between image and matrix coordinates.

Auto Trait Implementations

impl Unpin for MicrobitFrame

impl Send for MicrobitFrame

impl Sync for MicrobitFrame

Blanket Implementations

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self