[][src]Struct rubidium::Mode4Frame

#[repr(transparent)]pub struct Mode4Frame { /* fields omitted */ }

One of the two indexmap frames available in Mode 4.

See Mode4

Methods

impl Mode4Frame[src]

#[must_use]pub fn row(self, row: usize) -> Mode4Row[src]

Index by row to pick out a row within this frame.

Panics

If the index is out of bounds.

#[must_use]pub fn x(self, x: usize) -> Mode4Col[src]

Index by x to pick out a column within this frame.

Because of the VRAM limits on writing just a single byte at a time, this clears the lowest bit returning, so you always get an odd column position.

Panics

If the index is out of bounds.

Trait Implementations

impl Clone for Mode4Frame[src]

impl Copy for Mode4Frame[src]

impl Debug for Mode4Frame[src]

impl Default for Mode4Frame[src]

impl Eq for Mode4Frame[src]

impl PartialEq<Mode4Frame> for Mode4Frame[src]

impl StructuralEq for Mode4Frame[src]

impl StructuralPartialEq for Mode4Frame[src]

Auto Trait Implementations

impl Send for Mode4Frame

impl Sync for Mode4Frame

impl Unpin for Mode4Frame

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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> 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.