[][src]Struct gba_addresses::vram::CharblockAddress

#[repr(transparent)]pub struct CharblockAddress(_);

This is just a usize, but it also allows indexing to a specific tile.

Implementations

impl CharblockAddress[src]

pub const fn index_tile_4bpp(self, i: usize) -> usize[src]

Indexes to a given 4bpp tile within this charblock.

Panics

i must be < 512.

pub const fn index_tile_8bpp(self, i: usize) -> usize[src]

Indexes to a given 8bpp tile within this charblock.

Panics

i must be < 256.

pub const fn as_usize(self) -> usize[src]

Unwrap the value into a usize.

Trait Implementations

impl Clone for CharblockAddress[src]

impl Copy for CharblockAddress[src]

impl Debug for CharblockAddress[src]

impl Eq for CharblockAddress[src]

impl Hash for CharblockAddress[src]

impl Ord for CharblockAddress[src]

impl PartialEq<CharblockAddress> for CharblockAddress[src]

impl PartialOrd<CharblockAddress> for CharblockAddress[src]

impl StructuralEq for CharblockAddress[src]

impl StructuralPartialEq for CharblockAddress[src]

Auto Trait Implementations

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.