[][src]Struct rubidium::Mode4Row

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

A row within one of the two Mode 4 indexmaps.

See Mode4

Methods

impl Mode4Row[src]

#[must_use]pub fn col(self, col: usize) -> SimpleVolAddr<u16>[src]

Offset by col to get a location within this row.

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 Mode4Row[src]

impl Copy for Mode4Row[src]

impl Debug for Mode4Row[src]

impl Default for Mode4Row[src]

impl Eq for Mode4Row[src]

impl PartialEq<Mode4Row> for Mode4Row[src]

impl StructuralEq for Mode4Row[src]

impl StructuralPartialEq for Mode4Row[src]

Auto Trait Implementations

impl Send for Mode4Row

impl Sync for Mode4Row

impl Unpin for Mode4Row

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.