Struct snes_bitplanes::Tile
[−]
[src]
pub struct Tile(pub [u8; 64]);
Tile
is a tuple struct wrapping an 8x8 byte array:
conceptually a tile of SNES graphics.
It exists because Rust hates arrays larger than 32 -- downright hates 'em, I say! -- and denies them their rightful impls.
Methods
impl Tile
[src]
Trait Implementations
impl Copy for Tile
[src]
impl Clone for Tile
[src]
fn clone(&self) -> Tile
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Tile
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> IntoIterator for &'a Tile
[src]
type Item = &'a u8
The type of the elements being iterated over.
type IntoIter = Iter<'a, u8>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Iter<'a, u8>
[src]
Creates an iterator from a value. Read more
impl<'a> IntoIterator for &'a mut Tile
[src]
type Item = &'a mut u8
The type of the elements being iterated over.
type IntoIter = IterMut<'a, u8>
Which kind of iterator are we turning this into?
fn into_iter(self) -> IterMut<'a, u8>
[src]
Creates an iterator from a value. Read more
impl PartialEq for Tile
[src]
fn eq(&self, rhs: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Tile
[src]
impl Hash for Tile
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl AsRef<[u8]> for Tile
[src]
impl AsMut<[u8]> for Tile
[src]
impl Borrow<[u8]> for Tile
[src]
impl BorrowMut<[u8]> for Tile
[src]
fn borrow_mut(&mut self) -> &mut [u8]
[src]
Mutably borrows from an owned value. Read more