[−][src]Struct rmicrobit::display::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]
fn clone(&self) -> MicrobitFrame
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn row_plan(&self, row: usize) -> &RowPlan
[src]
fn row_plan_mut(&mut self, row: usize) -> &mut RowPlan
[src]
const COLS: usize
[src]
const ROWS: usize
[src]
fn set<T>(&mut self, image: &T) where
T: Render + ?Sized,
[src]
T: Render + ?Sized,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self